Skip to content

Commit

Permalink
Merge pull request numpy#15400 from sethtroisi/pytest_cleanup
Browse files Browse the repository at this point in the history
MAINT: cleanup _pytesttester.py
  • Loading branch information
charris authored Jan 23, 2020
2 parents 1165497 + 9445a51 commit fe70381
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions numpy/_pytesttester.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ def __call__(self, label='fast', verbose=1, extra_argv=None,
import pytest
import warnings

#FIXME This is no longer needed? Assume it was for use in tests.
# cap verbosity at 3, which is equivalent to the pytest '-vv' option
#from . import utils
#verbose = min(int(verbose), 3)
#utils.verbose = verbose
#

module = sys.modules[self.module_name]
module_path = os.path.abspath(module.__path__[0])

Expand Down Expand Up @@ -162,16 +155,6 @@ def __call__(self, label='fast', verbose=1, extra_argv=None,
"-W ignore:the matrix subclass is not",
]

# Ignore python2.7 -3 warnings
pytest_args += [
r"-W ignore:buffer\(\) not supported in 3\.x:DeprecationWarning",
r"-W ignore:CObject type is not supported in 3\.x:DeprecationWarning",
r"-W ignore:comparing unequal types not supported in 3\.x:DeprecationWarning",
r"-W ignore:the commands module has been removed in Python 3\.0:DeprecationWarning",
r"-W ignore:The 'new' module has been removed in Python 3\.0:DeprecationWarning",
]


if doctests:
raise ValueError("Doctests not supported")

Expand Down

0 comments on commit fe70381

Please sign in to comment.