summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_univnewlines.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-08-03 05:57:13 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-08-03 05:57:13 (GMT)
commit6db340cc1287c768fbd33374db3c7e9c73c4c164 (patch)
tree29c7658fbc14ecaad52a8b920a6819a96d19c8d1 /Lib/test/test_univnewlines.py
parent73a5072534ede2ea00650cb9d48676d938988996 (diff)
downloadcpython-6db340cc1287c768fbd33374db3c7e9c73c4c164.zip
cpython-6db340cc1287c768fbd33374db3c7e9c73c4c164.tar.gz
cpython-6db340cc1287c768fbd33374db3c7e9c73c4c164.tar.bz2
Fix deprecation warning in test_univnewlines.py
Diffstat (limited to 'Lib/test/test_univnewlines.py')
-rw-r--r--Lib/test/test_univnewlines.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_univnewlines.py b/Lib/test/test_univnewlines.py
index d6bd646..5021884 100644
--- a/Lib/test/test_univnewlines.py
+++ b/Lib/test/test_univnewlines.py
@@ -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)