diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-10 14:20:23 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-10 14:20:23 -0500 |
commit | 5c9406987aacf17d9c004aa1456797e0044306e5 (patch) | |
tree | d327ff7fa70ceecc0519a73fc4ca4efaac81d28c /conftest.py | |
parent | 1a273f3d9d3a110361a6db6db1afaf704a031acb (diff) | |
download | external_python_setuptools-5c9406987aacf17d9c004aa1456797e0044306e5.tar.gz external_python_setuptools-5c9406987aacf17d9c004aa1456797e0044306e5.tar.bz2 external_python_setuptools-5c9406987aacf17d9c004aa1456797e0044306e5.zip |
Use py.test to launch pytest, rather than python -m test, preventing the empty path from being added to sys.path per pytest-dev/pytest#2104. Fixes #852. Also use 'usedevelop' as the setuptools.tests.fixtures aren't available in a standard install.
Diffstat (limited to 'conftest.py')
-rw-r--r-- | conftest.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/conftest.py b/conftest.py index 0da92be9..3cccfe1a 100644 --- a/conftest.py +++ b/conftest.py @@ -1,6 +1,3 @@ -import os - - pytest_plugins = 'setuptools.tests.fixtures' @@ -9,17 +6,3 @@ def pytest_addoption(parser): "--package_name", action="append", default=[], help="list of package_name to pass to test functions", ) - - -def pytest_configure(): - _issue_852_workaround() - - -def _issue_852_workaround(): - """ - Patch 'setuptools.__file__' with an absolute path - for forward compatibility with Python 3. - Workaround for https://github.com/pypa/setuptools/issues/852 - """ - setuptools = __import__('setuptools') - setuptools.__file__ = os.path.abspath(setuptools.__file__) |