Commit 980796c5 authored by Ezio Melotti's avatar Ezio Melotti

Fix deprecation warning in test_univnewlines.py

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