From 61bdba37b91edf828409dcf16d1667fc788d43b2 Mon Sep 17 00:00:00 2001 From: Eric Jolibois Date: Sat, 13 Feb 2021 13:29:00 +0100 Subject: [PATCH] fix ci by ensuring order of created list (#2352) --- tests/test_main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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])