summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2018-08-11 05:45:06 (GMT)
committerGitHub <noreply@github.com>2018-08-11 05:45:06 (GMT)
commit423d05f6f59b24c91b9ef6b2e4ac130316764382 (patch)
tree74fc09993f9dbbc47425ce60c725e96d98c20290 /Lib/test
parent077059e0f086cf8c8b7fb9d1f053e38ddc743f59 (diff)
downloadcpython-423d05f6f59b24c91b9ef6b2e4ac130316764382.zip
cpython-423d05f6f59b24c91b9ef6b2e4ac130316764382.tar.gz
cpython-423d05f6f59b24c91b9ef6b2e4ac130316764382.tar.bz2
bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_pathlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index d95a831..ae7c75d 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -577,6 +577,8 @@ class _BasePurePathTest(object):
self.assertRaises(ValueError, P('a/b').with_suffix, '.c/.d')
self.assertRaises(ValueError, P('a/b').with_suffix, './.d')
self.assertRaises(ValueError, P('a/b').with_suffix, '.d/.')
+ self.assertRaises(ValueError, P('a/b').with_suffix,
+ (self.flavour.sep, 'd'))
def test_relative_to_common(self):
P = self.cls