@@ -436,7 +436,7 @@ def test_iter_rewritable_modules(self, names, expected):
436
436
437
437
438
438
class TestConfigFromdictargs (object ):
439
- def test_basic_behavior (self ):
439
+ def test_basic_behavior (self , _sys_snapshot ):
440
440
from _pytest .config import Config
441
441
442
442
option_dict = {"verbose" : 444 , "foo" : "bar" , "capture" : "no" }
@@ -450,7 +450,7 @@ def test_basic_behavior(self):
450
450
assert config .option .capture == "no"
451
451
assert config .args == args
452
452
453
- def test_origargs (self ):
453
+ def test_origargs (self , _sys_snapshot ):
454
454
"""Show that fromdictargs can handle args in their "orig" format"""
455
455
from _pytest .config import Config
456
456
@@ -1057,7 +1057,7 @@ def test_with_existing_file_in_subdir(self, tmpdir):
1057
1057
assert rootdir == tmpdir
1058
1058
assert inifile is None
1059
1059
1060
- def test_addopts_before_initini (self , monkeypatch , _config_for_test ):
1060
+ def test_addopts_before_initini (self , monkeypatch , _config_for_test , _sys_snapshot ):
1061
1061
cache_dir = ".custom_cache"
1062
1062
monkeypatch .setenv ("PYTEST_ADDOPTS" , "-o cache_dir=%s" % cache_dir )
1063
1063
config = _config_for_test
@@ -1092,7 +1092,7 @@ def test_addopts_from_ini_not_concatenated(self, testdir):
1092
1092
)
1093
1093
assert result .ret == _pytest .main .EXIT_USAGEERROR
1094
1094
1095
- def test_override_ini_does_not_contain_paths (self , _config_for_test ):
1095
+ def test_override_ini_does_not_contain_paths (self , _config_for_test , _sys_snapshot ):
1096
1096
"""Check that -o no longer swallows all options after it (#3103)"""
1097
1097
config = _config_for_test
1098
1098
config ._preparse (["-o" , "cache_dir=/cache" , "/some/test/path" ])
0 commit comments