#7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper.
diff --git a/Lib/test/test_univnewlines2k.py b/Lib/test/test_univnewlines2k.py
index 63c6fe8..4eca31d 100644
--- a/Lib/test/test_univnewlines2k.py
+++ b/Lib/test/test_univnewlines2k.py
@@ -80,7 +80,8 @@
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)