diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-12-06 08:29:52 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-12-06 08:29:52 +0100 |
commit | b500d40281096485744131b9be7715d0962b3642 (patch) | |
tree | c7b975a6a5f53d785c447772ec4013e657803cf0 | |
parent | 72eec211cc96a68a45de15779ecf9aefd88e28e0 (diff) | |
download | qutebrowser-b500d40281096485744131b9be7715d0962b3642.tar.gz qutebrowser-b500d40281096485744131b9be7715d0962b3642.zip |
Drop unnecessary .keys()
-rw-r--r-- | tests/unit/config/test_configfiles.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/config/test_configfiles.py b/tests/unit/config/test_configfiles.py index 65952ddb4..fe51f896f 100644 --- a/tests/unit/config/test_configfiles.py +++ b/tests/unit/config/test_configfiles.py @@ -873,7 +873,7 @@ class TestConfigPyModules: confpy.read() expected = {'normal': {',a': 'message-info foo'}} assert config.instance.get_obj('bindings.commands') == expected - assert "qbmodule" not in sys.modules.keys() + assert "qbmodule" not in sys.modules assert tmp_path not in sys.path def test_restore_sys_on_err(self, confpy, qbmodulepy, tmp_path): @@ -884,7 +884,7 @@ class TestConfigPyModules: assert error.text == "Unhandled exception" assert isinstance(error.exception, ZeroDivisionError) - assert "qbmodule" not in sys.modules.keys() + assert "qbmodule" not in sys.modules assert tmp_path not in sys.path def test_fail_on_nonexistent_module(self, confpy, qbmodulepy, tmp_path): |