Skip to content

Commit 81b45d2

Browse files
committed
another try to fix Py2 on CI
1 parent c324ea3 commit 81b45d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_mig_cgibin_cat.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,19 @@ def _provide_configuration(self):
3232
return 'testconfig'
3333

3434
def before_each(self):
35-
user_home = self.configuration.user_home[:-1]
35+
conf_user_home = self.configuration.user_home[:-1]
3636
client_dir = client_id_dir(self.TEST_CLIENT_ID)
3737

3838
# ensure a user db with our test user
3939
db_home = self.configuration.user_db_home
40-
_ensuredirs(db_home)
4140
db_fixture, db_fixture_file = fixturefile('MiG-users.db--example', fixture_format='binary', include_path=True)
4241
test_db_file = _temppath(fixturefile_normname('MiG-users.db--example', prefix=db_home), self)
4342
shutil.copyfile(db_fixture_file, test_db_file)
4443

4544
# create the test user home directory
46-
self.test_user_dir = _temppath(os.path.join(user_home, client_dir), self, ensure_dir=True)
45+
self.test_user_dir = os.path.join(conf_user_home, client_dir)
46+
_ensuredirs(self.test_user_dir)
47+
_temppath(self.test_user_dir, self)
4748
self.test_environ = create_http_environ(self.configuration)
4849

4950
def test_returns_file_output_with_single_file_match(self):

0 commit comments

Comments
 (0)