Skip to content

Commit

Permalink
Fail if not posix and not nt.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Nov 10, 2023
1 parent c274a06 commit 081dd54
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Lib/test/test_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@
import textwrap
from contextlib import contextmanager

# Skip these tests if there is no posix or nt module.
try:
import posix
except ImportError:
try:
import nt as posix
except ImportError:
raise unittest.SkipTest("requires 'posix' or 'nt' module")
import nt as posix

try:
import pwd
Expand Down

0 comments on commit 081dd54

Please sign in to comment.