Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information