Commit bddbc01
committed
Update tests to expect forward ref resolution to succeed
With the new forward reference resolution feature (#4542), forward
references like Optional["ConcreteFoo"] now resolve successfully when
ConcreteFoo is in scope. Updated tests accordingly:
- Split test_cannot_resolve_bare_forward_reference into two tests:
- test_can_resolve_forward_reference_to_class for Optional/list/List
- test_cannot_resolve_type_forward_reference for type/Type
- Changed test_string_forward_ref_message to test_string_forward_ref_resolved
since User with list["User"] now works on all Python versions1 parent a29300f commit bddbc01
File tree
2 files changed
+16
-10
lines changed- hypothesis-python/tests/cover
2 files changed
+16
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
614 | 616 | | |
615 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
616 | 625 | | |
617 | 626 | | |
618 | 627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
| |||
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | | - | |
91 | | - | |
92 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
93 | 91 | | |
94 | | - | |
95 | | - | |
| 92 | + | |
96 | 93 | | |
97 | 94 | | |
98 | 95 | | |
| |||
0 commit comments