From 5328205686fc5f33da7407a972665934a9cab1e8 Mon Sep 17 00:00:00 2001 From: Andreas Poehlmann Date: Sat, 27 Jan 2024 16:51:38 +0100 Subject: [PATCH] tests: adjust pathlib tests to accomodate fix from py-3.12.1 --- upath/tests/pathlib/test_pathlib_312.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upath/tests/pathlib/test_pathlib_312.py b/upath/tests/pathlib/test_pathlib_312.py index 39b766e5..610b05d2 100644 --- a/upath/tests/pathlib/test_pathlib_312.py +++ b/upath/tests/pathlib/test_pathlib_312.py @@ -1169,7 +1169,7 @@ def test_with_name(self): self.assertRaises(ValueError, P('c:').with_name, 'd.xml') self.assertRaises(ValueError, P('c:/').with_name, 'd.xml') self.assertRaises(ValueError, P('//My/Share').with_name, 'd.xml') - self.assertRaises(ValueError, P('c:a/b').with_name, 'd:') + # self.assertRaises(ValueError, P('c:a/b').with_name, 'd:') self.assertRaises(ValueError, P('c:a/b').with_name, 'd:e') self.assertRaises(ValueError, P('c:a/b').with_name, 'd:/e') self.assertRaises(ValueError, P('c:a/b').with_name, '//My/Share') @@ -1183,7 +1183,7 @@ def test_with_stem(self): self.assertRaises(ValueError, P('c:').with_stem, 'd') self.assertRaises(ValueError, P('c:/').with_stem, 'd') self.assertRaises(ValueError, P('//My/Share').with_stem, 'd') - self.assertRaises(ValueError, P('c:a/b').with_stem, 'd:') + # self.assertRaises(ValueError, P('c:a/b').with_stem, 'd:') self.assertRaises(ValueError, P('c:a/b').with_stem, 'd:e') self.assertRaises(ValueError, P('c:a/b').with_stem, 'd:/e') self.assertRaises(ValueError, P('c:a/b').with_stem, '//My/Share')