aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/support/generate_pyi.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-04-24 14:24:06 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-04-24 14:24:09 +0200
commit8b892f71b749a623724ccecca881972a33c9d559 (patch)
tree88d7a2371481cafd559d4895efa41b6f166ed8ac /sources/pyside2/PySide2/support/generate_pyi.py
parentfff6ea0059b7394869166a01674a9afa230bc3a9 (diff)
parenta7038d87ba6ec3b2beeee166930c24f290f6478f (diff)
Merge remote-tracking branch 'origin/5.12' into 5.13
Diffstat (limited to 'sources/pyside2/PySide2/support/generate_pyi.py')
-rw-r--r--sources/pyside2/PySide2/support/generate_pyi.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/sources/pyside2/PySide2/support/generate_pyi.py b/sources/pyside2/PySide2/support/generate_pyi.py
index 3b4b3409a..f286e34f1 100644
--- a/sources/pyside2/PySide2/support/generate_pyi.py
+++ b/sources/pyside2/PySide2/support/generate_pyi.py
@@ -256,11 +256,7 @@ def generate_pyi(import_name, outpath, options):
logger.info("Generated: {outfilepath}".format(**locals()))
if is_py3:
# Python 3: We can check the file directly if the syntax is ok.
- try:
- subprocess.check_output([sys.executable, outfilepath])
- except Exception as e:
- print("+++ Problem executing test, although it works")
- traceback.print_exc(file=sys.stdout)
+ subprocess.check_output([sys.executable, outfilepath])
return 1