Skip to content

Commit 84175fc

Browse files
committed
Fix failure
1 parent 96bab8d commit 84175fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_warnings/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,10 +1822,10 @@ async def coro(self):
18221822
self.assertTrue(inspect.iscoroutinefunction(Cls.coro))
18231823

18241824
def test_deprecated_class(self):
1825-
import test.test_warnings.data.deprecated_class as test_module
18261825
with self.assertWarns(DeprecationWarning) as cm:
18271826
f = StringIO()
18281827
with redirect_stdout(f):
1828+
import test.test_warnings.data.deprecated_class as test_module
18291829
help(test_module)
18301830
self.assertIn(f"Help on module {test_module.__name__}", f.getvalue())
18311831
self.assertEqual(str(cm.warning), "Test")

0 commit comments

Comments
 (0)