Skip to content

Commit ba3d5f3

Browse files
committed
fixup tests
1 parent 86fbb91 commit ba3d5f3

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

tests/python/python_tests.bzl

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ def _test_toolchain_ordering(env):
325325
"3.10": "3.10.18",
326326
"3.11": "3.11.13",
327327
"3.12": "3.12.11",
328-
"3.13": "3.13.4",
329-
"3.14": "3.14.0b2",
328+
"3.13": "3.13.5",
329+
"3.14": "3.14.0b3",
330330
"3.8": "3.8.20",
331331
"3.9": "3.9.23",
332332
})
@@ -551,7 +551,7 @@ def _test_add_new_version(env):
551551
override = [
552552
_override(
553553
base_url = "",
554-
available_python_versions = ["3.12.4", "3.13.0", "3.13.1", "3.13.99"],
554+
available_python_versions = ["3.12.11", "3.13.0", "3.13.5", "3.13.99"],
555555
minor_mapping = {
556556
"3.13": "3.13.99",
557557
},
@@ -564,9 +564,9 @@ def _test_add_new_version(env):
564564

565565
env.expect.that_str(py.default_python_version).equals("3.13")
566566
env.expect.that_collection(py.config.default["tool_versions"].keys()).contains_exactly([
567-
"3.12.4",
567+
"3.12.11",
568568
"3.13.0",
569-
"3.13.1",
569+
"3.13.5",
570570
"3.13.99",
571571
])
572572
env.expect.that_dict(py.config.default["tool_versions"]["3.13.0"]).contains_exactly({
@@ -583,7 +583,7 @@ def _test_add_new_version(env):
583583
"url": {"aarch64-unknown-linux-gnu": ["something.org", "else.org"]},
584584
})
585585
env.expect.that_dict(py.config.minor_mapping).contains_exactly({
586-
"3.12": "3.12.4", # The `minor_mapping` will be overriden only for the missing keys
586+
"3.12": "3.12.11", # The `minor_mapping` will be overriden only for the missing keys
587587
"3.13": "3.13.99",
588588
})
589589
env.expect.that_collection(py.toolchains).contains_exactly([
@@ -622,7 +622,7 @@ def _test_register_all_versions(env):
622622
override = [
623623
_override(
624624
base_url = "",
625-
available_python_versions = ["3.12.4", "3.13.0", "3.13.1", "3.13.99"],
625+
available_python_versions = ["3.12.11", "3.13.0", "3.13.5", "3.13.99"],
626626
register_all_versions = True,
627627
),
628628
],
@@ -633,14 +633,14 @@ def _test_register_all_versions(env):
633633

634634
env.expect.that_str(py.default_python_version).equals("3.13")
635635
env.expect.that_collection(py.config.default["tool_versions"].keys()).contains_exactly([
636-
"3.12.4",
636+
"3.12.11",
637637
"3.13.0",
638-
"3.13.1",
638+
"3.13.5",
639639
"3.13.99",
640640
])
641641
env.expect.that_dict(py.config.minor_mapping).contains_exactly({
642642
# The mapping is calculated automatically
643-
"3.12": "3.12.4",
643+
"3.12": "3.12.11",
644644
"3.13": "3.13.99",
645645
})
646646
env.expect.that_collection(py.toolchains).contains_exactly([
@@ -651,10 +651,10 @@ def _test_register_all_versions(env):
651651
)
652652
for name, version in {
653653
"python_3_12": "3.12",
654-
"python_3_12_4": "3.12.4",
654+
"python_3_12_11": "3.12.11",
655655
"python_3_13": "3.13",
656656
"python_3_13_0": "3.13.0",
657-
"python_3_13_1": "3.13.1",
657+
"python_3_13_5": "3.13.5",
658658
"python_3_13_99": "3.13.99",
659659
}.items()
660660
])
@@ -764,10 +764,10 @@ def _test_single_version_override_errors(env):
764764
for test in [
765765
struct(
766766
overrides = [
767-
_single_version_override(python_version = "3.12.4", distutils_content = "foo"),
768-
_single_version_override(python_version = "3.12.4", distutils_content = "foo"),
767+
_single_version_override(python_version = "3.12.11", distutils_content = "foo"),
768+
_single_version_override(python_version = "3.12.11", distutils_content = "foo"),
769769
],
770-
want_error = "Only a single 'python.single_version_override' can be present for '3.12.4'",
770+
want_error = "Only a single 'python.single_version_override' can be present for '3.12.11'",
771771
),
772772
]:
773773
errors = []
@@ -790,10 +790,10 @@ def _test_single_version_platform_override_errors(env):
790790
for test in [
791791
struct(
792792
overrides = [
793-
_single_version_platform_override(python_version = "3.12.4", platform = "foo", coverage_tool = "foo"),
794-
_single_version_platform_override(python_version = "3.12.4", platform = "foo", coverage_tool = "foo"),
793+
_single_version_platform_override(python_version = "3.8.20", platform = "foo", coverage_tool = "foo"),
794+
_single_version_platform_override(python_version = "3.8.20", platform = "foo", coverage_tool = "foo"),
795795
],
796-
want_error = "Only a single 'python.single_version_platform_override' can be present for '(\"3.12.4\", \"foo\")'",
796+
want_error = "Only a single 'python.single_version_platform_override' can be present for '(\"3.8.20\", \"foo\")'",
797797
),
798798
struct(
799799
overrides = [

0 commit comments

Comments
 (0)