Message5951
Logged In: YES
user_id=21477
Hi Jeremy,
This behaviour is actually known and intentional; the
dangers are documented as a caveat in the PyUnit docs. The
intention was that a test runner (GUI or otherwise) could
potentially make the traceback available for inspection
when a test fails, to aid in debugging.
In your particular case, relying on GC to close the file
might have caused problems with following code even if
PyUnit didn't store the traceback.
Overall I'd prefer to keep storing the tracebacks,
especially since they only get stored when tests fail. It
would be worth me adding a note about GC interaction to
the docs, though.
|
|
Date |
User |
Action |
Args |
2007-08-23 13:55:46 | admin | link | issue451309 messages |
2007-08-23 13:55:46 | admin | create | |
|