Skip to content

Commit

Permalink
BUG two unit test functions with same name
Browse files Browse the repository at this point in the history
  • Loading branch information
kwgoodman committed Feb 20, 2014
1 parent ae67e20 commit f3a353d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ After you have installed ``la``, run the suite of unit tests::
>>> import la
>>> la.test()
<snip>
Ran 3008 tests in 12.225s
Ran 3009 tests in 12.225s
OK
<nose.result.TextTestResult run=3008 errors=0 failures=0>
<nose.result.TextTestResult run=3009 errors=0 failures=0>

The ``la`` package contains C extensions that speed up common alignment
operations such as adding two unaligned larrys. If the C extensions don't
Expand Down
4 changes: 2 additions & 2 deletions la/util/tests/testing_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import numpy as np
from numpy.testing import assert_equal, assert_raises
from numpy.testing import assert_raises

from la import larry
from la.util.testing import assert_larry_equal as ale
Expand Down Expand Up @@ -48,7 +48,7 @@ def test_assert_larry_norefr(self):
ale(y, y, 'identity', original=yc, iscopy=True)


def test_assert_larry_norefr(self):
def test_assert_larry_norefr2(self):
y, x, yc = self.y, self.x, self.yc
assert_raises(AssertionError, ale,
y, y, 'raise noreference in c', original=y, iscopy=True)
Expand Down

0 comments on commit f3a353d

Please sign in to comment.