mirror of
https://github.com/python/cpython.git
synced 2025-07-29 22:24:49 +00:00
Issue #7849: Now the utility `check_warnings
` verifies if the warnings are
effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings.
This commit is contained in:
parent
1f3b4e12e8
commit
6de9e938a5
8 changed files with 102 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue