Ed Campbell added the comment:

I think this is a real improvement. Thanks. I have a few comments:

I suspect you know this, but the rendering problem occurs because of the call 
to curses.endwin() in tearDown(). I experimented with delaying this until 
teadDownClass() but this led to even more undesirable side effects with the 
tests running in parallel. Your print() call seems like a simple workaround.

There is only a single test case so I don't see the advantage of using a 
setUpModule function over setUpClass. Is there one? I'd put the code in 
setUpClass (or possibly put the curses.setupterm() call in setUp and have 
neither setUpModule or setUpClass). If and when further test cases are added 
I'd consider factoring out common code into a setUpModule. I'd also consider 
putting the skip test if not sys.__stdout__.isatty() that's in your current 
setUpModule as a decorator with the other @unittest.skipIf class decorators. Is 
there a reason you singled this one out to go in setUpModule?

You have a typo on line 30: 'unkwown' should be 'unknown'

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16000>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to