Skip to content

Commit

Permalink
Update slice zero step test to assert Uninferable
Browse files Browse the repository at this point in the history
  • Loading branch information
nelfin committed Oct 21, 2022
1 parent 847d163 commit 92ba74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittest_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -5317,8 +5317,8 @@ def test_slice_inference_in_for_loops_not_working() -> None:


def test_slice_zero_step_does_not_raise_ValueError() -> None:
node = extract_node("[][::0]")
assert helpers.safe_infer(node) is None
node = extract_node("x = [][::0]; x")
assert next(node.infer()) == util.Uninferable


def test_unpacking_starred_and_dicts_in_assignment() -> None:
Expand Down

0 comments on commit 92ba74e

Please sign in to comment.