-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Mark Windows-specific test failures as expected failures #7737
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
base: main
Are you sure you want to change the base?
Changes from 5 commits
cd21098
23a47a3
cbf6fb7
005fca1
f3c3454
d31cda8
20a3067
29e542b
b1e1f44
16897fa
56c17f0
108e4c4
b9096ac
030bee3
ddcce88
7f2a95e
562a6c7
479e21a
a66133f
bd3cbcc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -242,11 +242,6 @@ jobs: | |
| - os: windows-2025 | ||
| extra_test_args: [] # TODO: Enable '-u all' | ||
| env_polluting_tests: [] | ||
| skips: | ||
| - test_rlcompleter | ||
| - test_pathlib # panic by surrogate chars | ||
| - test_posixpath # OSError: (22, 'The filename, directory name, or volume label syntax is incorrect. (os error 123)') | ||
| - test_venv # couple of failing tests | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @samchakra0204 you can leave
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @samchakra0204 If okay, can we have 4 different PRs for each removed skipped test (with the necessary test markers). this would allow us to iterate more rapidly, and get some of the code to be merged quicker (by not being blocked by another unrelated change) |
||
| timeout: 50 | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| fail-fast: false | ||
| steps: | ||
|
|
||
|
ShaharNaveh marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,7 +80,14 @@ def setUp(self): | |
| self.lib = ('lib', f'python{sysconfig._get_python_version_abi()}') | ||
| self.include = 'include' | ||
| executable = sys._base_executable | ||
| self.exe = os.path.split(executable)[-1] | ||
| if sys.platform == 'win32': | ||
| exe_name = os.path.split(executable)[-1] | ||
| if os.path.splitext(exe_name)[0].endswith('_d'): | ||
| self.exe = 'python_d.exe' | ||
| else: | ||
| self.exe = 'python.exe' | ||
| else: | ||
| self.exe = os.path.split(executable)[-1] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this part @samchakra0204 |
||
| if (sys.platform == 'win32' | ||
| and os.path.lexists(executable) | ||
| and not os.path.exists(executable)): | ||
|
|
@@ -120,7 +127,7 @@ def isdir(self, *args): | |
| self.assertTrue(os.path.isdir(fn)) | ||
|
|
||
| # TODO: RUSTPYTHON | ||
| @unittest.expectedFailure | ||
| @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON") | ||
| def test_defaults_with_str_path(self): | ||
| """ | ||
| Test the create function with default arguments and a str path. | ||
|
|
@@ -130,7 +137,7 @@ def test_defaults_with_str_path(self): | |
| self._check_output_of_default_create() | ||
|
|
||
| # TODO: RUSTPYTHON | ||
| @unittest.expectedFailure | ||
| @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON") | ||
| def test_defaults_with_pathlike(self): | ||
| """ | ||
| Test the create function with default arguments and a path-like path. | ||
|
|
@@ -415,7 +422,7 @@ def test_unoverwritable_fails(self): | |
| self.clear_directory(self.env_dir) | ||
|
|
||
| # TODO: RUSTPYTHON | ||
| @unittest.expectedFailure | ||
| @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON") | ||
| def test_upgrade(self): | ||
| """ | ||
| Test upgrading an existing environment directory. | ||
|
|
@@ -678,7 +685,7 @@ def test_pathsep_error(self): | |
| @unittest.skipIf(os.name == 'nt', 'not relevant on Windows') | ||
| @requireVenvCreate | ||
| # TODO: RUSTPYTHON | ||
| @unittest.expectedFailure | ||
| @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON") | ||
| def test_zippath_from_non_installed_posix(self): | ||
| """ | ||
| Test that when create venv from non-installed python, the zip path | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.