summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imp.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-22 22:41:19 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-22 22:41:19 (GMT)
commitc68b6aaec8b08caf682ebb7c95f94ddf49a6b66c (patch)
treea282727782624c5d77359ac82c6ab9b7b4bc4886 /Lib/test/test_imp.py
parent5569e9b1507ac0ff18fec433a7733a0185dde7b0 (diff)
downloadcpython-c68b6aaec8b08caf682ebb7c95f94ddf49a6b66c.zip
cpython-c68b6aaec8b08caf682ebb7c95f94ddf49a6b66c.tar.gz
cpython-c68b6aaec8b08caf682ebb7c95f94ddf49a6b66c.tar.bz2
Issue #9319: Fix a crash on parsing a Python source code without encoding
cookie and not valid in UTF-8: use "<file>" as the filename instead of reading from NULL.
Diffstat (limited to 'Lib/test/test_imp.py')
-rw-r--r--Lib/test/test_imp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
index d745ae9..6f5b06a 100644
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -170,6 +170,9 @@ class ImportTests(unittest.TestCase):
support.unlink(init_file_name + ext)
support.rmtree(test_package_name)
+ def test_issue9319(self):
+ imp.find_module("test/badsyntax_pep3120")
+
class ReloadTests(unittest.TestCase):