File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
import unittest
3
3
import os , sys , shutil
4
4
5
+ from os .path import normpath
6
+
5
7
from roundup .demo import install_demo , run_demo
6
8
7
9
import roundup .scripts .roundup_server
@@ -89,9 +91,13 @@ def testDemoClassic(self):
89
91
self .assertIn ("http://localhost:8917/demo/" , out .getvalue ())
90
92
91
93
# 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
+ ))
95
101
96
102
# verify requested template was used
97
103
with open (self .home + "/TEMPLATE-INFO.txt" , "r" ) as f :
You can’t perform that action at this time.
0 commit comments