Skip to content

Commit

Permalink
tests: adjust pathlib tests to accommodate fix from py-3.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Jan 27, 2024
1 parent 777a398 commit 2ac5f23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions upath/tests/pathlib/test_pathlib_312.py
Original file line number Diff line number Diff line change
Expand Up @@ -1169,9 +1169,9 @@ 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:e')
self.assertRaises(ValueError, P('c:a/b').with_name, 'd:/e')
# 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')

def test_with_stem(self):
Expand All @@ -1183,9 +1183,9 @@ 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:e')
self.assertRaises(ValueError, P('c:a/b').with_stem, 'd:/e')
# 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')

def test_with_suffix(self):
Expand Down

0 comments on commit 2ac5f23

Please sign in to comment.