diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-01-23 16:50:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 16:50:25 -0800 |
commit | 68224f43d09393c1981bb83ee3c13a5158d2817c (patch) | |
tree | 94153dd189f924c399c2621c325fd2fd2a5e6ba6 /numpy/testing/_private | |
parent | 4c32890b3628434996824ae2056333b9a389f46c (diff) | |
parent | b4e3a4227e3a9cfe28717db458e67d79e916a418 (diff) | |
download | numpy-68224f43d09393c1981bb83ee3c13a5158d2817c.tar.gz |
Merge pull request #15407 from charris/replace-basestring
MAINT: Replace basestring with str.
Diffstat (limited to 'numpy/testing/_private')
-rw-r--r-- | numpy/testing/_private/nosetester.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/testing/_private/nosetester.py b/numpy/testing/_private/nosetester.py index 45a582bb6..bd6d002aa 100644 --- a/numpy/testing/_private/nosetester.py +++ b/numpy/testing/_private/nosetester.py @@ -7,7 +7,6 @@ This module implements ``test()`` and ``bench()`` functions for NumPy modules. import os import sys import warnings -from numpy.compat import basestring import numpy as np from .utils import import_nose, suppress_warnings @@ -212,7 +211,7 @@ class NoseTester: ''' argv = [__file__, self.package_path, '-s'] if label and label != 'full': - if not isinstance(label, basestring): + if not isinstance(label, str): raise TypeError('Selection label should be a string') if label == 'fast': label = 'not slow' @@ -419,7 +418,7 @@ class NoseTester: _warn_opts = dict(develop=(Warning,), release=()) - if isinstance(raise_warnings, basestring): + if isinstance(raise_warnings, str): raise_warnings = _warn_opts[raise_warnings] with suppress_warnings("location") as sup: |