From ada57a537c9a2f6cd23ba94cb7948c5e63f0e370 Mon Sep 17 00:00:00 2001 From: AnonymouX47 Date: Thu, 30 May 2024 22:35:21 +0100 Subject: [PATCH] test: UrwidImage: Remove instance attributes test The test is flawed in that attributes can be added by the base class, `urwid.Widget` anytime without notice... and this has actually happened already at some version of urwid between 2.3.4 and 2.6.12. --- tests/test_widget/test_urwid.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/test_widget/test_urwid.py b/tests/test_widget/test_urwid.py index 0d58b724..8afae914 100644 --- a/tests/test_widget/test_urwid.py +++ b/tests/test_widget/test_urwid.py @@ -48,10 +48,6 @@ def test_args(self): with pytest.raises(TypeError, match="'upscale'"): UrwidImage(python_image, upscale=value) - def test_attributes(self): - image_w = UrwidImage(python_image) - assert all(name.startswith("_ti_") for name in vars(image_w)) - def test_image(self): image_w = UrwidImage(python_image) assert image_w.image is python_image