aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/registry/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/registry/util.py')
-rw-r--r--sources/pyside6/tests/registry/util.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/sources/pyside6/tests/registry/util.py b/sources/pyside6/tests/registry/util.py
index 0359d28c4..a1c5e05e5 100644
--- a/sources/pyside6/tests/registry/util.py
+++ b/sources/pyside6/tests/registry/util.py
@@ -26,8 +26,6 @@ def isolate_warnings():
if mod and hasattr(mod, warn_name):
save_warnings[name] = mod.__dict__[warn_name]
delattr(mod, warn_name)
- else:
- save_warnings[name] = None
yield
for name, warn in save_warnings.items():
mod = sys.modules[name]