mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
#7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper.
This commit is contained in:
parent
8cb253f8d6
commit
0762788081
38 changed files with 287 additions and 181 deletions
|
@ -137,12 +137,10 @@ class TestBuffercStringIO(TestcStringIO):
|
|||
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(
|
||||
TestStringIO,
|
||||
TestcStringIO,
|
||||
TestBufferStringIO,
|
||||
TestBuffercStringIO
|
||||
)
|
||||
test_support.run_unittest(TestStringIO, TestcStringIO)
|
||||
with test_support.check_py3k_warnings(("buffer.. not supported",
|
||||
DeprecationWarning)):
|
||||
test_support.run_unittest(TestBufferStringIO, TestBuffercStringIO)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue