Skip to content

Commit

Permalink
Correctly skip tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Apr 25, 2024
1 parent f5d32d6 commit 60740b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_cgiapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

data_dir = os.path.join(os.path.dirname(__file__), 'cgiapp_data')

# these CGI scripts can't work on Windows or Jython
if sys.platform == 'win32' or sys.platform.startswith('java'):
sys.exit(0)
pytestmark = pytest.mark.skipif(
sys.platform == 'win32' or sys.platform.startswith('java'),
reason="CGI scripts can't work on Windows or Jython")


# Ensure the CGI scripts are called with the same python interpreter.
# Put a symlink to the interpreter executable into the path...
Expand Down

0 comments on commit 60740b3

Please sign in to comment.