diff --git a/tests/test_main.py b/tests/test_main.py index 927cbcd..dce214b 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1503,7 +1503,6 @@ def test_inherited_model_field_copy(): assert id(image_2) != id(item.images[1]) -@pytest.mark.xfail(reason='see https://github.com/samuelcolvin/pydantic/pull/2193#issuecomment-778345456') def test_inherited_model_field_untouched(): """It should not copy models used as fields if explicitly asked""" @@ -1522,7 +1521,7 @@ def test_inherited_model_field_untouched(): image_1 = Image(path='my_image1.png') image_2 = Image(path='my_image2.png') - item = Item(images={image_1, image_2}) + item = Item(images=(image_1, image_2)) assert image_1 in item.images assert id(image_1) == id(item.images[0])