Skip to content

Commit eb91563

Browse files
author
Richard Jones
committed
"fix" to allow tests to be run using the twisted project's "trial" runner
1 parent 0297f30 commit eb91563

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/db_test_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: db_test_base.py,v 1.90 2007-09-16 06:51:48 jpend Exp $
18+
# $Id: db_test_base.py,v 1.91 2007-10-25 05:24:50 richard Exp $
1919

2020
import unittest, os, shutil, errno, imp, sys, time, pprint, sets, base64, os.path
2121

@@ -55,7 +55,8 @@ def setupTracker(dirname, backend="anydbm"):
5555
except OSError, error:
5656
if error.errno not in (errno.ENOENT, errno.ESRCH): raise
5757
# create the instance
58-
init.install(dirname, 'templates/classic')
58+
init.install(dirname, os.path.join(os.path.dirname(__file__), '..',
59+
'templates/classic'))
5960
init.write_select_db(dirname, backend)
6061
config.save(os.path.join(dirname, 'config.ini'))
6162
tracker = instance.open(dirname)

0 commit comments

Comments
 (0)