Skip to content

Commit 594a8a3

Browse files
committed
Add references to the issue
1 parent 9d89c56 commit 594a8a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_dataclasses/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,7 @@ class D(C):
14971497
self.assertEqual((d.x, d.z), (4, 5))
14981498

14991499
def test_classvar_default_value_failing_descriptor(self):
1500+
"""Regression test for GH-144618."""
15001501
class Kaboom:
15011502
def __get__(self, inst, owner):
15021503
raise RuntimeError("kaboom!")
@@ -1508,6 +1509,7 @@ class C:
15081509
self.assertIsInstance(C.__dict__["kaboom"], Kaboom)
15091510

15101511
def test_classvar_member_isnt_tracked_or_removed(self):
1512+
"""Regression test for GH-144618."""
15111513
@dataclass
15121514
class C:
15131515
x: ClassVar[int] = 1000

0 commit comments

Comments
 (0)