diff options
Diffstat (limited to 'Lib/test/test_userstring.py')
-rwxr-xr-x | Lib/test/test_userstring.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py index cae610ef73..4bb0c45736 100755 --- a/Lib/test/test_userstring.py +++ b/Lib/test/test_userstring.py @@ -135,7 +135,7 @@ class MutableStringTest(UserStringTest): self.assertEqual(s, "") def test_main(): - with test_support.catch_warning(record=False): + with warnings.catch_warnings(): warnings.filterwarnings("ignore", ".*MutableString", DeprecationWarning) test_support.run_unittest(UserStringTest, MutableStringTest) |