diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-29 05:08:50 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-29 05:08:50 +0000 |
commit | b5fccc53239b93a1a66d310c7b34d11bee2f47fe (patch) | |
tree | 5a236b3cda848295c03db7bd2ae630ca16a79d12 /Lib/test/test_userstring.py | |
parent | 88d3779a611993986fe80a7c526160e1ae3c3262 (diff) | |
download | cpython-b5fccc53239b93a1a66d310c7b34d11bee2f47fe.tar.gz |
UserString.MutableString has been removed in Python 3.0.
Works on issue #2877. Thanks Quentin Gallet-Gilles for the patch.
Diffstat (limited to 'Lib/test/test_userstring.py')
-rwxr-xr-x | Lib/test/test_userstring.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py index 06636fcb64..cae610ef73 100755 --- a/Lib/test/test_userstring.py +++ b/Lib/test/test_userstring.py @@ -4,8 +4,8 @@ import string from test import test_support, string_tests - from UserString import UserString, MutableString +import warnings class UserStringTest( string_tests.CommonTest, @@ -135,7 +135,10 @@ class MutableStringTest(UserStringTest): self.assertEqual(s, "") def test_main(): - test_support.run_unittest(UserStringTest, MutableStringTest) + with test_support.catch_warning(record=False): + warnings.filterwarnings("ignore", ".*MutableString", + DeprecationWarning) + test_support.run_unittest(UserStringTest, MutableStringTest) if __name__ == "__main__": test_main() |