diff options
| author | Jason Madden <jamadden@gmail.com> | 2020-11-12 11:49:12 -0600 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2020-11-12 11:49:12 -0600 |
| commit | 8448b094d1b81788ac9cbaf86a184712f1daf5e0 (patch) | |
| tree | 34e07251b520b94f44fd40136687bb059a08e256 /tests/__init__.py | |
| parent | c80fab93073603289f41df8e32b7ecc25f37763e (diff) | |
| download | greenlet-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 'tests/__init__.py')
| -rw-r--r-- | tests/__init__.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index 3ea15d8..0000000 --- a/tests/__init__.py +++ /dev/null @@ -1,14 +0,0 @@ -import os -import glob -import unittest - -def test_collector(): - """Collect all tests under the tests directory and return a - unittest.TestSuite - """ - tests_dir = os.path.realpath(os.path.dirname(__file__)) - test_module_list = [ - 'tests.%s' % os.path.splitext(os.path.basename(t))[0] - for t in glob.glob(os.path.join(tests_dir, 'test_*.py')) - ] - return unittest.TestLoader().loadTestsFromNames(test_module_list) |
