Commit 8a078d5b authored by Ezio Melotti's avatar Ezio Melotti

Fix deprecation warnings in test_cgi.py

parent f7a13b32
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
......@@ -179,7 +179,8 @@ class CgiTests(unittest.TestCase):
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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment