summaryrefslogtreecommitdiff
path: root/conftest.py
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2020-11-12 11:49:12 -0600
committerJason Madden <jamadden@gmail.com>2020-11-12 11:49:12 -0600
commit8448b094d1b81788ac9cbaf86a184712f1daf5e0 (patch)
tree34e07251b520b94f44fd40136687bb059a08e256 /conftest.py
parentc80fab93073603289f41df8e32b7ecc25f37763e (diff)
downloadgreenlet-issue184.tar.gz
Move to the src/ layout, and make greenlet a package.issue184
Make 'tests' become 'greenlet.tests', and be compatible with 'python -m unittest discover'. Fixes #184. Fixes #184. Fixes #189.
Diffstat (limited to 'conftest.py')
-rw-r--r--conftest.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/conftest.py b/conftest.py
deleted file mode 100644
index e3d92a1..0000000
--- a/conftest.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# configuration file for py.test
-
-import sys, os
-from distutils.spawn import spawn
-
-
-def pytest_configure(config):
- os.chdir(os.path.dirname(__file__))
- cmd = [sys.executable, "setup.py", "-q", "build_ext", "-q", "-i"]
- spawn(cmd, search_path=0)
-
- from tests import build_test_extensions
- build_test_extensions()
-
-
-def pytest_report_header(config):
- import greenlet
- return "greenlet %s from %s" % (greenlet.__version__, greenlet.__file__)