#7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper.

This commit is contained in:
Florent Xicluna 2010-03-21 01:14:24 +00:00
parent 8cb253f8d6
commit 0762788081
38 changed files with 287 additions and 181 deletions

View file

@ -23,7 +23,9 @@ class BufferTests(unittest.TestCase):
def test_main():
test_support.run_unittest(BufferTests)
with test_support.check_py3k_warnings(("buffer.. not supported",
DeprecationWarning)):
test_support.run_unittest(BufferTests)
if __name__ == "__main__":
test_main()