[issue22060] Clean up ctypes.test, use unittest test discovery

Zachary Ware report at bugs.python.org
Fri Aug 8 17:26:13 CEST 2014


Zachary Ware added the comment:

In pre-commit testing, I realized I was getting skips that I shouldn't have been getting, and it turns out that I screwed up both setUpModule functions from the previous patch.  New patch fixes test_loading and test_find to use the skipTest method instead of skip decorators, so the necessary variables are actually set when they're looked for.  I also combined the setUpModule in test_find with the setUp method of the TestOpenGL_libs into a setUpClass classmethod, which makes things a little simpler and cleaner.

Since I was in there anyway, I went ahead and fixed your point about test.support.verbose.  I had not thought about that issue previously.

I'll go ahead and commit later today unless something else jumps out as being wrong.

----------
Added file: http://bugs.python.org/file36312/issue22060.v2.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22060>
_______________________________________


More information about the Python-bugs-list mailing list