We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96bab8d commit 84175fcCopy full SHA for 84175fc
Lib/test/test_warnings/__init__.py
@@ -1822,10 +1822,10 @@ async def coro(self):
1822
self.assertTrue(inspect.iscoroutinefunction(Cls.coro))
1823
1824
def test_deprecated_class(self):
1825
- import test.test_warnings.data.deprecated_class as test_module
1826
with self.assertWarns(DeprecationWarning) as cm:
1827
f = StringIO()
1828
with redirect_stdout(f):
+ import test.test_warnings.data.deprecated_class as test_module
1829
help(test_module)
1830
self.assertIn(f"Help on module {test_module.__name__}", f.getvalue())
1831
self.assertEqual(str(cm.warning), "Test")
0 commit comments