File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,8 @@ def test_announce(self):
241
241
with pytest .raises (ValueError ):
242
242
dist .announce (args , kwargs )
243
243
244
- def test_find_config_files_disable (self , monkeypatch ):
244
+ def test_find_config_files_disable (self , temp_home ):
245
245
# Ticket #1180: Allow user to disable their home config file.
246
- temp_home = self .mkdtemp ()
247
246
if os .name == 'posix' :
248
247
user_filename = os .path .join (temp_home , ".pydistutils.cfg" )
249
248
else :
@@ -252,8 +251,6 @@ def test_find_config_files_disable(self, monkeypatch):
252
251
with open (user_filename , 'w' ) as f :
253
252
f .write ('[distutils]\n ' )
254
253
255
- monkeypatch .setenv ('HOME' , temp_home )
256
-
257
254
d = Distribution ()
258
255
all_files = d .find_config_files ()
259
256
You can’t perform that action at this time.
0 commit comments