diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-02-10 15:10:48 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-02-10 15:10:48 -0500 |
commit | d10016a7178bc3677ce7410b0ed075ecde02978c (patch) | |
tree | b15ec85c1fc7e0920938fb60381f98a7ada488f2 | |
parent | 7631c231838d8ff766cc2065ccd8651a9a0ddba0 (diff) | |
download | pytest-runner-d10016a7178bc3677ce7410b0ed075ecde02978c.tar.gz |
Collapse run and _super_run3.0.1
-rw-r--r-- | ptr.py | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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 |