8000 gh-104242: Skip test_is_char_device_true in pathlib test on non posix platform by aisk · Pull Request #116904 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-104242: Skip test_is_char_device_true in pathlib test on non posix platform #116904

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

Closed
wants to merge 2 commits into from
Closed
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
Next Next commit
gh-104242: Skip test_is_char_device_true in pathlib test on non posix…
… platform
  • Loading branch information
aisk committed Mar 16, 2024
commit 2d6d4d7402b24255b1a188c891bdaa500d2800df
3 changes: 2 additions & 1 deletion Lib/test/test_pathlib/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,7 @@ def test_is_socket_true(self):
self.assertIs(self.cls(self.base, 'mysock\udfff').is_socket(), False)
self.assertIs(self.cls(self.base, 'mysock\x00').is_socket(), False)

@unittest.skipIf(os.name != 'posix', 'test requires a POSIX-compatible system')
def test_is_char_device_true(self):
# Under Unix, /dev/null should generally be a char device.
P = self.cls('/dev/null')
Expand Down Expand Up @@ -1575,7 +1576,7 @@ def test_group_windows(self):
P('c:/').group()


@unittest.skipIf(os.name == 'nt', 'test requires a POSIX-compatible system')
@unittest.skipIf(os.name != 'posix', 'test requires a POSIX-compatible system')
class PosixPathTest(PathTest, PurePosixPathTest):
cls = pathlib.PosixPath

Expand Down
0