]> granicus.if.org Git - python/commit
#12780: update inspect test skipIf for PEP 3147.
authorR David Murray <rdmurray@bitdance.com>
Fri, 3 Oct 2014 15:15:38 +0000 (11:15 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 3 Oct 2014 15:15:38 +0000 (11:15 -0400)
commit32562d7da388819f46b91feeb74915bc0ad4686a
treeb5982603dd2c27f1a2978bbc18144456fceb4f31
parentb48cb29ac4b9ac6b7e2a835c70c4fdd1b5333bcf
#12780: update inspect test skipIf for PEP 3147.

The test needs to be skipped if unicodedata is either part of the
main binary (a repackaging of cpython on Windows?) or has python
source (pypy?).  PEP 3147 makes __file__ point to the .py source,
so we need to change the extension check from looking for the
old .pyc/.pyo to just looking for .py.

Note that this skip should never trigger on CPython itself, so
one could argue it should be dropped instead.  But since it exists,
why risk breaking someone else's python.
Lib/test/test_inspect.py