diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 18:10:09 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 18:10:09 (GMT) |
| commit | f613f352d05cafbec6c4524c67f3eed00a0c4857 (patch) | |
| tree | fe0e22ba0c4a6de17a04580c26cf19c8cc136528 /Lib/test/string_tests.py | |
| parent | 800a354fa946d777b8df92e5b0bd07e92f6f9a3b (diff) | |
| download | cpython-f613f352d05cafbec6c4524c67f3eed00a0c4857.zip cpython-f613f352d05cafbec6c4524c67f3eed00a0c4857.tar.gz cpython-f613f352d05cafbec6c4524c67f3eed00a0c4857.tar.bz2 | |
Merged revisions 78758 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78758 | florent.xicluna | 2010-03-07 14:18:33 +0200 (Sun, 07 Mar 2010) | 4 lines
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.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 6bc681a..7e214eb 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -686,8 +686,9 @@ class CommonTest(unittest.TestCase): EQ("bobobXbobob", "bobobobXbobobob", "replace", "bobob", "bob") EQ("BOBOBOB", "BOBOBOB", "replace", "bob", "bobby") - ba = buffer('a') - bb = buffer('b') + with test_support._check_py3k_warnings(): + ba = buffer('a') + bb = buffer('b') EQ("bbc", "abc", "replace", ba, bb) EQ("aac", "abc", "replace", bb, ba) |
