Skip to content

Commit 439fd11

Browse files
committed
issue2551334 - get test suite running under windows
Support dumbdbm on windows.
1 parent 6c42e21 commit 439fd11

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/test_demo.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import unittest
33
import os, sys, shutil
44

5+
from os.path import normpath
6+
57
from roundup.demo import install_demo, run_demo
68

79
import roundup.scripts.roundup_server
@@ -89,9 +91,13 @@ def testDemoClassic(self):
8991
self.assertIn("http://localhost:8917/demo/", out.getvalue())
9092

9193
# verify the default anydbm db is created
92-
db_file = self.home + "/db/nodes.user"
93-
self.assertTrue(os.path.isfile(db_file),
94-
"expected db file %s does not exist" % db_file)
94+
db_file = self.home + normpath("/db/nodes.user")
95+
db_file_dumbdbm = self.home + normpath("/db/nodes.user.dir")
96+
self.assertTrue(os.path.isfile(db_file) or
97+
os.path.isfile(db_file_dumbdbm),
98+
"expected db file %s or %s does not exist" % (
99+
db_file, db_file_dumbdbm
100+
))
95101

96102
# verify requested template was used
97103
with open(self.home + "/TEMPLATE-INFO.txt", "r") as f:

0 commit comments

Comments
 (0)