[Tim Peters] >I'd add one thing: people use "assert" *way* too much in the test suite. I'll second that. >It's usually much better to just print what you got, and rely on regrtest's >output-comparison to complain if what you get isn't what you expected. The >primary reason for this is that asserts "vanish" when Python is run >using -O, so running regrtest in -O mode simply doesn't test *anything* >caught by an assert. It can also stop the test script from being used with JPython. A difference that is acceptable (perhaps by necessity) will prevent the remaining test from executing. regards, finn
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4