summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_modulefinder.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-08 20:43:50 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-08 20:43:50 (GMT)
commit02d9f5e5b2ee2662cb6776ebdafa2f3169452e41 (patch)
treeb5f50062b0813e8d9f6df7c63067bc21201b21e3 /Lib/test/test_modulefinder.py
parentc7cc9850d49354e9e93601d649a3c2bf60f72df8 (diff)
downloadcpython-02d9f5e5b2ee2662cb6776ebdafa2f3169452e41.zip
cpython-02d9f5e5b2ee2662cb6776ebdafa2f3169452e41.tar.gz
cpython-02d9f5e5b2ee2662cb6776ebdafa2f3169452e41.tar.bz2
Issue #26881: The modulefinder module now supports extended opcode arguments.
Diffstat (limited to 'Lib/test/test_modulefinder.py')
-rw-r--r--Lib/test/test_modulefinder.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/test_modulefinder.py b/Lib/test/test_modulefinder.py
index 4c49e9a..e4df2a9 100644
--- a/Lib/test/test_modulefinder.py
+++ b/Lib/test/test_modulefinder.py
@@ -319,6 +319,19 @@ class ModuleFinderTest(unittest.TestCase):
expected = "co_filename %r changed to %r" % (old_path, new_path)
self.assertIn(expected, output)
+ def test_extended_opargs(self):
+ extended_opargs_test = [
+ "a",
+ ["a", "b"],
+ [], [],
+ """\
+a.py
+ %r
+ import b
+b.py
+""" % list(range(2**16))] # 2**16 constants
+ self._do_test(extended_opargs_test)
+
if __name__ == "__main__":
unittest.main()