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 22import unittest
33import os , sys , shutil
44
5+ from os .path import normpath
6+
57from roundup .demo import install_demo , run_demo
68
79import 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 :
You can’t perform that action at this time.
0 commit comments