8000 GH-110109: Move tests for pathlib ABCs to new module. by barneygale · Pull Request #112904 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-110109: Move tests for pathlib ABCs to new module. #112904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Don't run ABC test units from test_pathlib
  • Loading branch information
barneygale committed Dec 14, 2023
commit eddb352ffe2694c49632186be7326f3c75fc3074
6 changes: 3 additions & 3 deletions Lib/test/test_pathlib/test_pathlib.py
Original file line number 9B38 Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from test.support import is_emscripten, is_wasi
from test.support import os_helper
from test.support.os_helper import TESTFN, FakePath
from test.test_pathlib.test_pathlib_abc import DummyPurePathTest, DummyPathTest
from test.test_pathlib import test_pathlib_abc

try:
import grp, pwd
Expand All @@ -41,7 +41,7 @@
# Tests for the pure classes.
#

class PurePathTest(DummyPurePathTest):
class PurePathTest(test_pathlib_abc.DummyPurePathTest):
cls = pathlib.PurePath

def test_constructor_nested(self):
Expand Down Expand Up @@ -930,7 +930,7 @@ class cls(pathlib.PurePath):
# Tests for the concrete classes.
#

class PathTest(DummyPathTest, PurePathTest):
class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
"""Tests for the FS-accessing functionalities of the Path classes."""
cls = pathlib.Path
can_symlink = os_helper.can_symlink()
Expand Down
0