summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-25 16:41:15 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-25 16:41:15 +0200
commitb20f905f6d52d6839ca2e5b3fd069cf5ccffc429 (patch)
treef0e1f25cbf2819fd32d7ddeac33b8498f5defc4e /Lib/test
parent764fc9bfac84d564c526628974a9bd5edfa5bcab (diff)
parent1b87ae0c910e4bcf652bd45a2c8c62ff11606b47 (diff)
downloadcpython-git-b20f905f6d52d6839ca2e5b3fd069cf5ccffc429.tar.gz
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_ntpath.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index c8d84a7467..dacddded3d 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -237,6 +237,7 @@ class TestNtpath(unittest.TestCase):
tester('ntpath.expandvars("%?bar%")', "%?bar%")
tester('ntpath.expandvars("%foo%%bar")', "bar%bar")
tester('ntpath.expandvars("\'%foo%\'%bar")', "\'%foo%\'%bar")
+ tester('ntpath.expandvars("bar\'%foo%")', "bar\'%foo%")
@unittest.skipUnless(support.FS_NONASCII, 'need support.FS_NONASCII')
def test_expandvars_nonascii(self):