-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
fix: 修复验证test的 Windows 兼容性问题 #8562
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: master
Are you sure you want to change the base?
Changes from 10 commits
360440d
d0cad50
c6a2942
98b7851
0137a26
042405a
582caf9
2c2c6d8
6f0f145
046bc00
94afb1f
6081c04
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -442,7 +442,8 @@ def test_get_core_constraints_logs_resolution_step_context(monkeypatch): | |
| assert any("解析核心分发名称失败" in log for log in warning_logs) | ||
|
|
||
|
|
||
| def test_iter_requirements_supports_direct_line_input(): | ||
| def test_iter_requirements_supports_direct_line_input(monkeypatch): | ||
| monkeypatch.setattr("sys.platform", "linux") | ||
|
Comment on lines
+445
to
+446
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. suggestion (testing): Clarify platform-dependent expectations and consider adding a complementary Windows-case test Since |
||
| parsed = list( | ||
| requirements_utils.iter_requirements( | ||
| lines=["demo-package>=1.0", 'other-package; sys_platform == "win32"'] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.