summaryrefslogtreecommitdiff
path: root/Lib/test/string_tests.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-07 12:18:33 +0000
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-07 12:18:33 +0000
commit6de9e938a5f70128a77c589b3ec40936f6335c1c (patch)
treec92fde2ad98ab954b494c59b1554da17f3720ccd /Lib/test/string_tests.py
parent1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07 (diff)
downloadcpython-git-6de9e938a5f70128a77c589b3ec40936f6335c1c.tar.gz
Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are
effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings.
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r--Lib/test/string_tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py
index db0571fa11..7cfe65be35 100644
--- a/Lib/test/string_tests.py
+++ b/Lib/test/string_tests.py
@@ -715,8 +715,7 @@ class CommonTest(unittest.TestCase):
EQ("bobobXbobob", "bobobobXbobobob", "replace", "bobob", "bob")
EQ("BOBOBOB", "BOBOBOB", "replace", "bob", "bobby")
- # Silence Py3k warning
- with test_support.check_warnings():
+ with test_support.check_py3k_warnings():
ba = buffer('a')
bb = buffer('b')
EQ("bbc", "abc", "replace", ba, bb)