mhammond / pywin32

Python for Windows (pywin32) Extensions
4.9k stars 783 forks source link

Improving unit tests assertion messages #2275

Closed Avasam closed 3 weeks ago

Avasam commented 4 weeks ago

Using unittest assertion methods where possible (since this project doesn't use pytest) Raise NotImplementedError for unimplemented methods Use raise AssertionError instead of assert 0 (except in pywin/debugger, in case that's done on purpose)