File: update-test-to-use-correct-platform-alias.patch

package info (click to toggle)
pdm 2.23.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,552 kB
  • sloc: python: 24,995; javascript: 34; makefile: 24
file content (17 lines) | stat: -rw-r--r-- 967 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Frost Ming <me@frostming.com>
Subject: update test to use correct platform alias for version comparison
Origin: upstream, https://github.com/pdm-project/pdm/commit/d2b1c578622c94093b70d9370c80e3af6fec611e

--- a/tests/cli/test_install.py
+++ b/tests/cli/test_install.py
@@ -394,8 +394,8 @@
 def test_install_from_lock_with_higher_version(project, pdm, working_set):
     project.add_dependencies(["django"])
     pdm(["lock", "--platform", "manylinux_2_20_x86_64"], obj=project, strict=True)
-    # linux is an alias for manylinux_2_17_x86_64 which is lower than the target
-    project.environment.__dict__["spec"] = EnvSpec.from_spec("==3.11", "linux")
+    # Install with manylinux_2_17_x86_64 which is lower than the target
+    project.environment.__dict__["spec"] = EnvSpec.from_spec("==3.11", "manylinux_2_17_x86_64")
     result = pdm(["install"], obj=project)
     assert result.exit_code == 0
     assert "WARNING: Found lock target" in result.stderr