Commits

Ezio Melotti committed 5cf679b

Fix deprecation warning in test_univnewlines.py

  • Participants
  • Parent commits b1e043d
  • Branches 2.6

Comments (0)

Files changed (1)

File Lib/test/test_univnewlines.py

 
     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)