From 48dbf505ce9d284df7f2a2e9654c241e9bf083df Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Mon, 18 Jul 2016 21:49:37 -0400 Subject: [PATCH] Limit config_tmpdir use in test_configtypes. Only use the fixture in the test class that tries to access the config dir (TestFileAndUserStyleSheet) rather than the whole test. --- tests/unit/config/test_configtypes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/config/test_configtypes.py b/tests/unit/config/test_configtypes.py index 648bb393f..38958be5d 100644 --- a/tests/unit/config/test_configtypes.py +++ b/tests/unit/config/test_configtypes.py @@ -33,8 +33,6 @@ from PyQt5.QtNetwork import QNetworkProxy from qutebrowser.config import configtypes, configexc from qutebrowser.utils import debug, utils -pytestmark = pytest.mark.usefixtures('config_tmpdir') - class Font(QFont): @@ -1284,6 +1282,7 @@ def unrequired_class(**kwargs): @pytest.mark.usefixtures('qapp') +@pytest.mark.usefixtures('config_tmpdir') class TestFileAndUserStyleSheet: """Test File/UserStyleSheet."""