diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f488cae26..cd47eb571 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: py: - - "3.13.0-alpha.2" + - "3.13.0-alpha.6" - "3.12" - "3.11" - "3.10" diff --git a/docs/changelog/2702.bugfix.rst b/docs/changelog/2702.bugfix.rst new file mode 100644 index 000000000..41a03c4fa --- /dev/null +++ b/docs/changelog/2702.bugfix.rst @@ -0,0 +1 @@ +Python 3.13.0a6 renamed pathmod to parser. diff --git a/tests/unit/create/via_global_ref/builtin/testing/path.py b/tests/unit/create/via_global_ref/builtin/testing/path.py index 4c026165e..06ba921c5 100644 --- a/tests/unit/create/via_global_ref/builtin/testing/path.py +++ b/tests/unit/create/via_global_ref/builtin/testing/path.py @@ -51,10 +51,10 @@ class PathMockABC(FakeDataABC, Path): # Allows to pass some tests for Windows via PosixPath. _flavour.altsep = _flavour.altsep or "\\" - # Python 3.13 renamed _flavour to pathmod - pathmod = getattr(Path(), "pathmod", None) - if hasattr(pathmod, "altsep"): - pathmod.altsep = pathmod.altsep or "\\" + # Python 3.13 renamed _flavour to parser + parser = getattr(Path(), "parser", None) + if hasattr(parser, "altsep"): + parser.altsep = parser.altsep or "\\" def exists(self): return self.is_file() or self.is_dir()