summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-01-15 11:26:38 (GMT)
committerGitHub <noreply@github.com>2019-01-15 11:26:38 (GMT)
commit3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a (patch)
tree47a493a1fbdeba4a16ddc0b071542ee00239974f /Lib/test/test_builtin.py
parentb91140fdb17472d03a7b7971f143c08a40fde923 (diff)
downloadcpython-3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a.zip
cpython-3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a.tar.gz
cpython-3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a.tar.bz2
bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561)
Handle the case of an empty module name in PYTHONBREAKPOINT. Fixes a regression introduced in bpo-34756.
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r--Lib/test/test_builtin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index e2a4f2f..5674ea8 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -1608,6 +1608,7 @@ class TestBreakpoint(unittest.TestCase):
def test_envar_unimportable(self):
for envar in (
'.', '..', '.foo', 'foo.', '.int', 'int.',
+ '.foo.bar', '..foo.bar', '/./',
'nosuchbuiltin',
'nosuchmodule.nosuchcallable',
):