Fix deprecation warning in test_univnewlines.py

This commit is contained in:
Ezio Melotti 2010-08-03 05:57:13 +00:00
parent 73a5072534
commit 6db340cc12
1 changed files with 2 additions and 1 deletions

View File

@ -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)