Skip to content

Commit db7079c

Browse files
committed
Fix test_pytypes.py::test_issue2361 failure on PyPy3.7
1 parent 898d303 commit db7079c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_pytypes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ def test_issue2361():
467467
assert m.issue2361_str_implicit_copy_none() == "None"
468468
with pytest.raises(TypeError) as excinfo:
469469
assert m.issue2361_dict_implicit_copy_none()
470-
assert "'NoneType' object is not iterable" in str(excinfo.value)
470+
assert "NoneType" in str(excinfo.value)
471+
assert "iterable" in str(excinfo.value)
471472

472473

473474
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)