summaryrefslogtreecommitdiff
path: root/Lib/test/test_userstring.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_userstring.py')
-rwxr-xr-xLib/test/test_userstring.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py
index b99581d6de..8ec9ca3f3e 100755
--- a/Lib/test/test_userstring.py
+++ b/Lib/test/test_userstring.py
@@ -136,8 +136,11 @@ class MutableStringTest(UserStringTest):
def test_main():
with warnings.catch_warnings():
+ # Silence Py3k warnings
warnings.filterwarnings("ignore", ".*MutableString",
DeprecationWarning)
+ warnings.filterwarnings("ignore", ".+slice__ has been removed",
+ DeprecationWarning)
test_support.run_unittest(UserStringTest, MutableStringTest)
if __name__ == "__main__":