tarpas / pytest-testmon

Selects tests affected by changed files. Executes the right tests first. Continuous test runner when used with pytest-watch.
https://testmon.org
MIT License
823 stars 55 forks source link

Corrected crash when there is a syntax error in a code file #153

Closed carsongee closed 2 years ago

carsongee commented 4 years ago

If the exception is raised special_blocks is never set causing https://github.com/tarpas/pytest-testmon/blob/63adfc7ed4e0dac77e2d24d5937a72d0df3dc1d0/testmon/testmon_core.py#L338 to call it with a value of None and causing https://github.com/tarpas/pytest-testmon/blob/63adfc7ed4e0dac77e2d24d5937a72d0df3dc1d0/testmon/process_code.py#L168 to raise a TypeError

tarpas commented 2 years ago

I think this has been fixed in v 1.3.0