Skip to content

Commit 9bb5470

Browse files
committed
Use assertIs for sentinel testing
1 parent 3530b8b commit 9bb5470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_dataclasses/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,7 @@ def test_classvar_member_isnt_tracked_or_removed(self):
15141514
class C:
15151515
x: ClassVar[int] = 1000
15161516

1517-
self.assertEqual(C.__dataclass_fields__['x'].default, MISSING)
1517+
self.assertIs(C.__dataclass_fields__['x'].default, MISSING)
15181518
self.assertEqual(C.x, 1000)
15191519

15201520
def test_classvar_default_factory(self):

0 commit comments

Comments
 (0)