Repository navigation
Commit 12c8099
authored
Less precise check for error message in trigger initialization (#32035)
The test for error message (introduced in #31999) in trigger
initialization expected precise error message, however Python 3.10
changed the details printed when TypeError was converted to string
(including the information about class being created not only method).
This caused the tests to fail on Python 3.10 and 3.11.
Making two asserts with two parts of the message expected solves
the problem for all python versions.1 parent 43fa157 commit 12c8099
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
| 303 | + | |
| 304 | + | |
307 | 305 | | |
308 | 306 | | |
309 | 307 | | |
| |||
0 commit comments