Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a4c68bb

Browse files
committed
Remove dummy test command from setup.py
This was introduced in 2015 when support for running nose tests via `setup.py test` was removed. We do not need to explicitly tell people anymore that this is not possible.
1 parent 694561d commit a4c68bb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from setuptools import setup, find_packages, Extension
3333
import setuptools.command.build_ext
3434
import setuptools.command.build_py
35-
import setuptools.command.test
3635
import setuptools.command.sdist
3736

3837
from distutils.errors import CompileError
@@ -67,12 +66,6 @@ def has_flag(self, flagname):
6766
return True
6867

6968

70-
class NoopTestCommand(setuptools.command.test.test):
71-
def __init__(self, dist):
72-
print("Matplotlib does not support running tests with "
73-
"'python setup.py test'. Please run 'pytest'.")
74-
75-
7669
class BuildExtraLibraries(setuptools.command.build_ext.build_ext):
7770
def finalize_options(self):
7871
self.distribution.ext_modules[:] = [
@@ -341,7 +334,6 @@ def make_release_tree(self, base_dir, files):
341334
"fallback_version": "0.0+UNKNOWN",
342335
},
343336
cmdclass={
344-
"test": NoopTestCommand,
345337
"build_ext": BuildExtraLibraries,
346338
"build_py": BuildPy,
347339
"sdist": Sdist,

0 commit comments

Comments
 (0)