summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-08 21:02:06 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-08 21:02:06 (GMT)
commit3111c94b16298ac211b862a3e8fb028c6c452c72 (patch)
tree97d5cdbb3aa994b8dd6e8dbf11b82f2c18d2a79a /Lib/test
parent4f23cabc16027f0b6474ac8c0c1782ec5605e63b (diff)
downloadcpython-3111c94b16298ac211b862a3e8fb028c6c452c72.zip
cpython-3111c94b16298ac211b862a3e8fb028c6c452c72.tar.gz
cpython-3111c94b16298ac211b862a3e8fb028c6c452c72.tar.bz2
Issue #26881: modulefinder now works with bytecode with extended args.
Diffstat (limited to 'Lib/test')
-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 e71d1e0..497ee5c 100644
--- a/Lib/test/test_modulefinder.py
+++ b/Lib/test/test_modulefinder.py
@@ -278,6 +278,19 @@ class ModuleFinderTest(unittest.TestCase):
def test_relative_imports_3(self):
self._do_test(relative_import_test_3)
+ def test_extended_opargs(self):
+ extended_opargs_test = [
+ "a",
+ ["a", "b"],
+ [], [],
+ """\
+a.py
+ %r
+ import b
+b.py
+""" % range(2**16)] # 2**16 constants
+ self._do_test(extended_opargs_test)
+
def test_main():
distutils.log.set_threshold(distutils.log.WARN)
test_support.run_unittest(ModuleFinderTest)