From 73cbe7a01a22d02dbe1ec841e8779c775cad3d08 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 29 May 2018 12:04:55 +0300 Subject: bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197) Remove the docstring attribute of AST types and restore docstring expression as a first stmt in their body. Co-authored-by: INADA Naoki --- Lib/test/test_opcodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_opcodes.py') diff --git a/Lib/test/test_opcodes.py b/Lib/test/test_opcodes.py index 8af098fb206..6806c616cbe 100644 --- a/Lib/test/test_opcodes.py +++ b/Lib/test/test_opcodes.py @@ -27,7 +27,7 @@ class OpcodeTest(unittest.TestCase): with open(ann_module.__file__) as f: txt = f.read() co = compile(txt, ann_module.__file__, 'exec') - self.assertEqual(co.co_firstlineno, 8) + self.assertEqual(co.co_firstlineno, 6) except OSError: pass -- cgit v1.2.3