1. Armin Rigo
  2. cpython-withatomic

Commits

Ezio Melotti  committed e1ef526

Fix deprecation warnings in test_cgi.py

  • Participants
  • Parent commits ebc9051
  • Branches 2.6

Comments (0)

Files changed (1)

File Lib/test/test_cgi.py

View file
  • Ignore whitespace
-from test.test_support import run_unittest, check_warnings
+from test.test_support import run_unittest, check_warnings, _check_py3k_warnings
 import cgi
 import os
 import sys
             self.assertEqual(d[k], v)
         for k, v in d.items():
             self.assertEqual(expect[k], v)
-        self.assertEqual(sorted(expect.values()), sorted(d.values()))
+        with _check_py3k_warnings():
+            self.assertEqual(sorted(expect.values()), sorted(d.values()))
 
     def test_log(self):
         cgi.log("Testing")