diff options
author | Christian Tismer <tismer@stackless.com> | 2018-10-07 19:05:38 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2018-10-08 11:58:34 +0000 |
commit | 03cef2411c670aa41f448f44edd5abc79107099c (patch) | |
tree | 31b43ad0f2830623d1355541f04e085fad81b144 /sources/shiboken2/generator/shiboken2 | |
parent | 0da9ed9a856637393469d0e4da0b60f60860655f (diff) |
Simplify and correct the new_inherited_functions test
The test was written when PySide2 did not have the
"from PySide2 import *" feature. It was written with "try..except"
constructs to find the translated modules.
This did not work correctly due to the path settings in ctest.
When not all modules are selected, they are still partially importable!
For instance, PySide2.QtPrintSupport could be imported, although
it was not compiled, and then complained since a function was not found.
This is possible, because python 3 supports module directories without
an __init__.py file. (I was always against that "feature".)
Instead of adjusting the path setting, this patch uses the above feature
and does not rely on "importability".
Task-number: PYSIDE-331
Change-Id: I9aed4971f10f423918525cf411fd7ff713f40e48
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/generator/shiboken2')
0 files changed, 0 insertions, 0 deletions