Skip to content

Commit 27cd211

Browse files
committed
Fixed a bug in testing for directory existence in the test setup.
- Legacy-Id: 12185
1 parent e1f0477 commit 27cd211

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/utils/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ class TestWikiGlueManagementCommand(TestCase):
204204

205205
def setUp(self):
206206
self.wiki_dir_pattern = os.path.abspath('tmp-wiki-dir-root/%s')
207-
if not os.path.exists(self.wiki_dir_pattern):
207+
if not os.path.exists(os.path.dirname(self.wiki_dir_pattern)):
208208
os.mkdir(os.path.dirname(self.wiki_dir_pattern))
209209
self.svn_dir_pattern = os.path.abspath('tmp-svn-dir-root/%s')
210-
if not os.path.exists(self.svn_dir_pattern):
210+
if not os.path.exists(os.path.dirname(self.svn_dir_pattern)):
211211
os.mkdir(os.path.dirname(self.svn_dir_pattern))
212212

213213
def tearDown(self):

0 commit comments

Comments
 (0)