Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mark subclass test as a failing test
  • Loading branch information
youknowone committed Jul 22, 2025
commit c858e844837f71acd7cb4f5ce9508e8ca3153cd9
9 changes: 7 additions & 2 deletions Lib/test/test_warnings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1439,8 +1439,6 @@ def test_conflicting_envvar_and_command_line(self):
b'~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^',
b"DeprecationWarning: Message"])

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_default_filter_configuration(self):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@youknowone This test fails here, in the parent test class. but it passes when it runs with the python test class
PyEnvironmentVariableTests

How should I mark the parent as failing but the child as passing?

pure_python_api = self.module is py_warnings
if support.Py_DEBUG:
Expand Down Expand Up @@ -1488,6 +1486,13 @@ def test_nonascii(self):
class CEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
module = c_warnings

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_default_filter_configuration(self):
# XXX: RUSTPYHTON; remove the entire function when fixed
super().test_default_filter_configuration()


class PyEnvironmentVariableTests(EnvironmentVariableTests, unittest.TestCase):
module = py_warnings

Expand Down
Loading