Skip to content

Commit 6909e92

Browse files
committed
Drop 'setup.py test'. Just use 'runtests.py'.
1 parent d8803a3 commit 6909e92

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

setup.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,6 @@
88
import sys
99

1010

11-
# This command has been borrowed from
12-
# https://github.com/getsentry/sentry/blob/master/setup.py
13-
class PyTest(TestCommand):
14-
def finalize_options(self):
15-
TestCommand.finalize_options(self)
16-
self.test_args = ['tests']
17-
self.test_suite = True
18-
19-
def run_tests(self):
20-
import pytest
21-
errno = pytest.main(self.test_args)
22-
sys.exit(errno)
23-
24-
2511
def get_version(package):
2612
"""
2713
Return package version as listed in `__version__` in `init.py`.
@@ -80,7 +66,6 @@ def get_package_data(package):
8066
author_email='[email protected]', # SEE NOTE BELOW (*)
8167
packages=get_packages('rest_framework'),
8268
package_data=get_package_data('rest_framework'),
83-
cmdclass={'test': PyTest},
8469
install_requires=[],
8570
classifiers=[
8671
'Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)