Skip to content
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

[pathlib] Test fail on Windows/WSL #8

Open
LukeSavefrogs opened this issue Jun 13, 2023 · 0 comments
Open

[pathlib] Test fail on Windows/WSL #8

LukeSavefrogs opened this issue Jun 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@LukeSavefrogs
Copy link
Owner

LukeSavefrogs commented Jun 13, 2023

⚠This issue only affects Windows OS⚠

Tests are failing ONLY on Windows runners.

It almost always includes a path separator mismatch, but it also differs between versions:

Jython 2.5.3 (Windows):
image

Jython 2.2.1 (Windows):
image
image

From Jython 2.5.0 onwards, the failing tests are always the same:

======================================================================
FAIL: test_creation (polyfills.pathlib.__init__.PathTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "src\polyfills\pathlib\__init__.py", line 371, in test_creation
    self.assertEqual(
AssertionError: '/tmp\\test.py' != '\\tmp\\test.py'

======================================================================
FAIL: test_dots (polyfills.pathlib.__init__.PathTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "src\polyfills\pathlib\__init__.py", line 381, in test_dots
    self.assertEqual(str(Path("../..")), "..%s.." % (_os.sep))
AssertionError: '../..' != '..\\..'

----------------------------------------------------------------------
Ran 90 tests in 0.188s

FAILED (failures=2)
@LukeSavefrogs LukeSavefrogs added the bug Something isn't working label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant