Commit 7a4f172
committed
fix: loosen constructor str rejection test for PyPy compatibility
PyPy doesn't support tp_vectorcall, so constructors fall back to
tp_init with y* format, which gives a different error message.
Use plain assertRaises(TypeError) instead of assertRaisesRegex.1 parent 53e721d commit 7a4f172
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
0 commit comments