summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2014-04-08 18:30:29 -0400
committerChris McDonough <chrism@plope.com>2014-04-08 18:30:29 -0400
commit2ecc60e1f55e42a99d8d5339e0724babb4c82a2e (patch)
tree42a63289bd80aef76075e4c013a41e1c6a1afcbf
parentc3ef4170b195f08f9563256a3cbdd614d786acef (diff)
downloadpyramid-2ecc60e1f55e42a99d8d5339e0724babb4c82a2e.tar.gz
pyramid-2ecc60e1f55e42a99d8d5339e0724babb4c82a2e.tar.bz2
pyramid-2ecc60e1f55e42a99d8d5339e0724babb4c82a2e.zip
no idea how this ever worked without pyramid being installed into the python being used to run the tests first
-rw-r--r--pyramid/scaffolds/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/scaffolds/tests.py b/pyramid/scaffolds/tests.py
index d913d022a..dfbf9b6cf 100644
--- a/pyramid/scaffolds/tests.py
+++ b/pyramid/scaffolds/tests.py
@@ -1,6 +1,5 @@
import sys
import os
-import pkg_resources
import shutil
import subprocess
import tempfile
@@ -26,7 +25,8 @@ class TemplateTest(object):
self.old_cwd = os.getcwd()
self.directory = tempfile.mkdtemp()
self.make_venv(self.directory)
- os.chdir(pkg_resources.get_distribution('pyramid').location)
+ here = os.path.abspath(os.path.dirname(__file__))
+ os.chdir(os.path.dirname(os.path.dirname(here)))
subprocess.check_call(
[os.path.join(self.directory, 'bin', 'python'),
'setup.py', 'develop'])