summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ptr.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/ptr.py b/ptr.py
index a944278..b238a1e 100644
--- a/ptr.py
+++ b/ptr.py
@@ -169,7 +169,11 @@ class PyTest(orig.test):
except AttributeError:
return null()
- def _super_run(self):
+ def run(self):
+ """
+ Override run to ensure requirements are available in this session (but
+ don't install them anywhere).
+ """
dist = CustomizedDist()
for attr in 'allow_hosts index_url'.split():
setattr(dist, attr, getattr(self, attr))
@@ -186,13 +190,6 @@ class PyTest(orig.test):
with self.paths_on_pythonpath(paths):
self.with_project_on_sys_path(self.run_tests)
- def run(self):
- """
- Override run to ensure requirements are available in this session (but
- don't install them anywhere).
- """
- self._super_run()
-
@property
def _argv(self):
return ['pytest'] + self.addopts