Make sure test_env_vars restores variables correctly
Otherwise, we'd get a segfault inside Qt in test_stylesheet, since
88f2873a79
.
This commit is contained in:
parent
ca8d3903e3
commit
829a6855a3
@ -302,7 +302,8 @@ class TestEarlyInit:
|
||||
"""Check settings which set an environment variable."""
|
||||
monkeypatch.setattr(configinit.objects, 'backend',
|
||||
usertypes.Backend.QtWebEngine)
|
||||
monkeypatch.delenv(envvar, raising=False)
|
||||
monkeypatch.setenv(envvar, '') # to make sure it gets restored
|
||||
monkeypatch.delenv(envvar)
|
||||
|
||||
config_stub.set_obj(config_opt, config_val)
|
||||
configinit._init_envvars()
|
||||
|
Loading…
Reference in New Issue
Block a user