aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/registry/existence_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-14 08:59:46 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-14 08:59:46 +0100
commit259c8245ef6d9c2d6f0e1abd0983338d87ddb09a (patch)
treebc672eb387fca9c9dcbcb13dd78aa15bc279481b /sources/pyside2/tests/registry/existence_test.py
parent1704567d7ad0d21dd3b588af7aad40cd244c1799 (diff)
parentda5f43b6cbecac437f80fbb1b1405292b3962d3b (diff)
Merge remote-tracking branch 'origin/5.14' into 5.15
Diffstat (limited to 'sources/pyside2/tests/registry/existence_test.py')
-rw-r--r--sources/pyside2/tests/registry/existence_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sources/pyside2/tests/registry/existence_test.py b/sources/pyside2/tests/registry/existence_test.py
index 0313bd9f8..6db88a818 100644
--- a/sources/pyside2/tests/registry/existence_test.py
+++ b/sources/pyside2/tests/registry/existence_test.py
@@ -100,6 +100,13 @@ except SyntaxError:
print("*** not a python file, removed:", shortpath)
os.unlink(effectiveRefPath)
have_refmodule = False
+except NameError as e:
+ if "recreate" in e.args[0]:
+ print("*** explicit request to recreate:", shortpath)
+ else:
+ print("*** unexpected NameError:", e, "- creating", shortpath)
+ os.unlink(effectiveRefPath)
+ have_refmodule = False
dict_name = "sig_dict"
if have_refmodule and not hasattr(sig_exists, dict_name):
print("*** wrong module without '{dict_name}', removed:"