Commit 6db340cc authored by Ezio Melotti's avatar Ezio Melotti

Fix deprecation warning in test_univnewlines.py

parent 73a50725
......@@ -81,7 +81,8 @@ class TestGenericUnivNewlines(unittest.TestCase):
def test_execfile(self):
namespace = {}
execfile(test_support.TESTFN, namespace)
with test_support._check_py3k_warnings():
execfile(test_support.TESTFN, namespace)
func = namespace['line3']
self.assertEqual(func.func_code.co_firstlineno, 3)
self.assertEqual(namespace['line4'], FATX)
......
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