Skip to content

Commit

Permalink
Enable test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jan 24, 2024
1 parent 75f7c6a commit 3ac010c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/dbm/sqlite3.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _normalize_uri_path(path):
if path.drive:
if not path.is_absolute():
path = Path(path).absolute()
return Path("/", path).as_posix()
return "/" + Path(path).as_posix()
return path.as_posix()


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_dbm_sqlite3.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_uri_substitutions(self):
with self.subTest(path=path, normalized=normalized):
self.assertEqual(_normalize_uri_path(path), normalized)

@unittest.skip("WIP")
@unittest.skipUnless(sys.platform == "win32", "requires Windows")
def test_uri_windows(self):
dataset = (
# Relative subdir.
Expand Down

0 comments on commit 3ac010c

Please sign in to comment.