mirror of https://github.com/python/cpython
Fix deprecation warning in test_univnewlines.py
This commit is contained in:
parent
73a5072534
commit
6db340cc12
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue