j
k
j a
j l
Fredrik Johansson wrote:
one could just write assert 1/0 raises ZeroDivisionError
one could just write
assert 1/0 raises ZeroDivisionError
It's been pointed out that using assert for testing is not the best idea, since then you can't test that the code works properly with assertions turned off. -- Greg
Back to the thread
Back to the list