Skip to content

Commit 52db1e8

Browse files
committed
Fix test_pytypes.py::test_issue2361 failure on PyPy3.7
1 parent c7fd788 commit 52db1e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_pytypes.py

+2-1
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)