Skip to content

Commit

Permalink
fix windows test failure due to pathsep (refs buildbot#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Jun 7, 2010
1 parent e9d31cf commit e2b10b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/buildbot/test/unit/test_db_dbspec.py
Expand Up @@ -37,8 +37,9 @@ def test_fromURL_sqliteRelative(self):
def test_fromURL_sqlitePercentSub(self):
basedir = "/foo/bar"
d = dbspec.DBSpec.from_url("sqlite:///%(basedir)s/x/state.sqlite", basedir=basedir)
# no os.path.join here - it's string interpolation
self.failUnlessConnection(d, self.SQLITE_NAMES,
connargs=(os.path.join(basedir, os.path.join("x", "state.sqlite")),))
connargs=("%s/x/state.sqlite" % basedir,))

def test_fromURL_sqliteAbsolutePath(self):
basedir = "/foo/bar"
Expand Down

0 comments on commit e2b10b8

Please sign in to comment.