File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,6 @@ def test_mutation_independence():
425425 assert d2["k0"] == "v0"
426426 d2["k1"] = "changed2"
427427 assert d1["k1"] == "v1"
428-
429428def test_ineligible_not_folded():
430429 # These should not be constant folded
431430 assert get_mutable_value()["a"] == []
@@ -450,7 +449,6 @@ def test_ineligible_not_folded():
450449 # User-defined class instance as key should not be folded
451450 d = get_user_defined()
452451 assert list(d.values()) == [1]
453-
454452def test_eligible_folded():
455453 assert get_headers() == {"k0": "v0", "k1": "v1"}
456454 assert get_numbers() == {1: 2, 3: 4}
@@ -463,16 +461,6 @@ def test_eligible_folded():
463461 assert get_tuple_of_tuple() == {(1, (2, (3, 4))): "ok"}
464462 assert get_frozenset_of_tuple() == {frozenset({(1, 2), (3, 4)}): "ok"}
465463
466- [file driver.py]
467- from native import (
468- test_mutation_independence,
469- test_ineligible_not_folded,
470- test_eligible_folded,
471- )
472- test_mutation_independence()
473- test_ineligible_not_folded()
474- test_eligible_folded()
475-
476464[case testDictLiteralIsImmutable]
477465def get_flat():
478466 return {"x": 1, "y": 2}
You can’t perform that action at this time.
0 commit comments