summaryrefslogtreecommitdiff
path: root/numpy/testing/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-08-28 13:37:28 -0600
committerCharles Harris <charlesr.harris@gmail.com>2016-08-28 13:37:28 -0600
commit1c218e97f14cf47672cb212e6645002940463ca8 (patch)
treedccd918a6395e078e4a84deb27515bbd0754de12 /numpy/testing/tests
parent3c34457ac9e6c11f9197f513013d8ab1ee9d9236 (diff)
downloadnumpy-1c218e97f14cf47672cb212e6645002940463ca8.tar.gz
STY: Small PEP8 cleanups.
Diffstat (limited to 'numpy/testing/tests')
-rw-r--r--numpy/testing/tests/test_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
index 6ba0b5a75..c0f609883 100644
--- a/numpy/testing/tests/test_utils.py
+++ b/numpy/testing/tests/test_utils.py
@@ -779,6 +779,7 @@ class TestULP(unittest.TestCase):
lambda: assert_array_max_ulp(nan, nzero,
maxulp=maxulp))
+
class TestStringEqual(unittest.TestCase):
def test_simple(self):
assert_string_equal("hello", "hello")
@@ -804,7 +805,7 @@ def assert_warn_len_equal(mod, n_in_context, py3_n_in_context=None):
if 'version' in mod_warns:
if py3_n_in_context is None:
py3_n_in_context = n_in_context
- assert_equal(len(mod_warns)-1, py3_n_in_context)
+ assert_equal(len(mod_warns) - 1, py3_n_in_context)
else:
assert_equal(len(mod_warns), n_in_context)
@@ -1038,7 +1039,6 @@ def test_tempdir():
assert_(not os.path.isdir(tdir))
-
def test_temppath():
with temppath() as fpath:
with open(fpath, 'w') as f: