diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-14 08:59:46 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-14 08:59:46 +0100 |
commit | 259c8245ef6d9c2d6f0e1abd0983338d87ddb09a (patch) | |
tree | bc672eb387fca9c9dcbcb13dd78aa15bc279481b /sources/pyside2/tests/registry/existence_test.py | |
parent | 1704567d7ad0d21dd3b588af7aad40cd244c1799 (diff) | |
parent | da5f43b6cbecac437f80fbb1b1405292b3962d3b (diff) |
Merge remote-tracking branch 'origin/5.14' into 5.15
Change-Id: Ia02c84b0afac228a713759719474be126161f9ae
Diffstat (limited to 'sources/pyside2/tests/registry/existence_test.py')
-rw-r--r-- | sources/pyside2/tests/registry/existence_test.py | 7 |
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:" |