summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_univnewlines.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_univnewlines.py')
-rw-r--r--Lib/test/test_univnewlines.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_univnewlines.py b/Lib/test/test_univnewlines.py
index e91bde7..922c184 100644
--- a/Lib/test/test_univnewlines.py
+++ b/Lib/test/test_univnewlines.py
@@ -83,7 +83,7 @@ class TestGenericUnivNewlines(unittest.TestCase):
namespace = {}
execfile(test_support.TESTFN, namespace)
func = namespace['line3']
- self.assertEqual(func.func_code.co_firstlineno, 3)
+ self.assertEqual(func.__code__.co_firstlineno, 3)
self.assertEqual(namespace['line4'], FATX)