()
| 935 | |
| 936 | |
| 937 | def test_subscript(): |
| 938 | context = EvaluationContext( |
| 939 | locals={}, globals={}, evaluation="limited", in_subscript=True |
| 940 | ) |
| 941 | empty_slice = slice(None, None, None) |
| 942 | assert guarded_eval("", context) == tuple() |
| 943 | assert guarded_eval(":", context) == empty_slice |
| 944 | assert guarded_eval("1:2:3", context) == slice(1, 2, 3) |
| 945 | assert guarded_eval(':, "a"', context) == (empty_slice, "a") |
| 946 | |
| 947 | |
| 948 | def test_unbind_method(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…