summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-02-10 15:10:48 -0500
committerJason R. Coombs <jaraco@jaraco.com>2018-02-10 15:10:48 -0500
commitd10016a7178bc3677ce7410b0ed075ecde02978c (patch)
treeb15ec85c1fc7e0920938fb60381f98a7ada488f2
parent7631c231838d8ff766cc2065ccd8651a9a0ddba0 (diff)
downloadpytest-runner-d10016a7178bc3677ce7410b0ed075ecde02978c.tar.gz
Collapse run and _super_run3.0.1
-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