Skip to content

Commit c877664

Browse files
committed
test: change name for invalid forward ref test
Apparently Python 3.14 relaxed some constraints and it didn't work on previous versions
1 parent cf2be1c commit c877664

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/scripts/coverage_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,8 @@ def test_forward_ref_eval_exception(self):
543543
from typing import ForwardRef
544544
from libdestruct.common.forward_ref_inflater import _LazyPtrField
545545

546-
# This will raise a SyntaxError or NameError during eval
547-
lazy = _LazyPtrField(ForwardRef("???invalid???"), owner=None)
546+
# Valid syntax but unresolvable name → NameError during eval
547+
lazy = _LazyPtrField(ForwardRef("NoSuchTypeAnywhere"), owner=None)
548548
result = lazy._resolve_forward_ref()
549549
self.assertIsNone(result)
550550

0 commit comments

Comments
 (0)