@@ -436,7 +436,7 @@ def test_iter_rewritable_modules(self, names, expected):
436436
437437
438438class TestConfigFromdictargs (object ):
439- def test_basic_behavior (self ):
439+ def test_basic_behavior (self , _sys_snapshot ):
440440 from _pytest .config import Config
441441
442442 option_dict = {"verbose" : 444 , "foo" : "bar" , "capture" : "no" }
@@ -450,7 +450,7 @@ def test_basic_behavior(self):
450450 assert config .option .capture == "no"
451451 assert config .args == args
452452
453- def test_origargs (self ):
453+ def test_origargs (self , _sys_snapshot ):
454454 """Show that fromdictargs can handle args in their "orig" format"""
455455 from _pytest .config import Config
456456
@@ -1057,7 +1057,7 @@ def test_with_existing_file_in_subdir(self, tmpdir):
10571057 assert rootdir == tmpdir
10581058 assert inifile is None
10591059
1060- def test_addopts_before_initini (self , monkeypatch , _config_for_test ):
1060+ def test_addopts_before_initini (self , monkeypatch , _config_for_test , _sys_snapshot ):
10611061 cache_dir = ".custom_cache"
10621062 monkeypatch .setenv ("PYTEST_ADDOPTS" , "-o cache_dir=%s" % cache_dir )
10631063 config = _config_for_test
@@ -1092,7 +1092,7 @@ def test_addopts_from_ini_not_concatenated(self, testdir):
10921092 )
10931093 assert result .ret == _pytest .main .EXIT_USAGEERROR
10941094
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 ):
10961096 """Check that -o no longer swallows all options after it (#3103)"""
10971097 config = _config_for_test
10981098 config ._preparse (["-o" , "cache_dir=/cache" , "/some/test/path" ])
0 commit comments