diff --git a/Lib/dbm/sqlite3.py b/Lib/dbm/sqlite3.py index fe541738957524..b9c14b065540e7 100644 --- a/Lib/dbm/sqlite3.py +++ b/Lib/dbm/sqlite3.py @@ -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() diff --git a/Lib/test/test_dbm_sqlite3.py b/Lib/test/test_dbm_sqlite3.py index 39c69ae00c81da..b307f93fb3753f 100644 --- a/Lib/test/test_dbm_sqlite3.py +++ b/Lib/test/test_dbm_sqlite3.py @@ -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.