move tests out of installed package dir

This commit is contained in:
Noah Levitt 2015-09-22 05:45:05 +00:00
parent dd1c7b5f7d
commit 4c380dcc41
4 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import tempfile
import subprocess # to access the script from shell
import sys
import glob
import distutils
# will try as python 3 then default to python 2 modules
try:
@ -38,7 +39,7 @@ val1 = 'very first value'
val2 = 'second value'
py = sys.executable
dump_anydbm_loc = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "bin/dump-anydbm")
dump_anydbm_loc = distutils.spawn.find_executable("dump-anydbm")
@pytest.fixture(scope="function")
def gdbm_test_db(request):