diff options
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/machar.py | 6 | ||||
-rw-r--r-- | numpy/lib/tests/test_twodim_base.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/machar.py b/numpy/lib/machar.py index 894623e82..249dfddad 100644 --- a/numpy/lib/machar.py +++ b/numpy/lib/machar.py @@ -123,10 +123,10 @@ class MachAr(object): break a = a * beta negep = negep - 1 - # Prevent infinite loop on PPC with gcc 4.0: - if negep < 0: + # Prevent infinite loop on PPC with gcc 4.0: + if negep < 0: raise RuntimeError, "could not determine machine tolerance " \ - "for 'negep', locals() -> %s" % (locals()) + "for 'negep', locals() -> %s" % (locals()) negep = -negep epsneg = a diff --git a/numpy/lib/tests/test_twodim_base.py b/numpy/lib/tests/test_twodim_base.py index 4213078c5..e32f29478 100644 --- a/numpy/lib/tests/test_twodim_base.py +++ b/numpy/lib/tests/test_twodim_base.py @@ -19,7 +19,7 @@ def get_mat(n): class test_eye(ScipyTestCase): def check_basic(self): - assert_equal(eye(4),array([[1,0,0,0], + assert_equal(eye(4),array([[1,0,0,0], [0,1,0,0], [0,0,1,0], [0,0,0,1]])) |