summaryrefslogtreecommitdiff
path: root/numpy/core/tests/test_scalarinherit.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/tests/test_scalarinherit.py')
-rw-r--r--numpy/core/tests/test_scalarinherit.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/core/tests/test_scalarinherit.py b/numpy/core/tests/test_scalarinherit.py
index 9e32cf624..6a5c4fde9 100644
--- a/numpy/core/tests/test_scalarinherit.py
+++ b/numpy/core/tests/test_scalarinherit.py
@@ -68,8 +68,7 @@ class TestCharacter(object):
def test_char_repeat(self):
np_s = np.string_('abc')
np_u = np.unicode_('abc')
- np_i = np.int(5)
res_s = b'abc' * 5
res_u = u'abc' * 5
- assert_(np_s * np_i == res_s)
- assert_(np_u * np_i == res_u)
+ assert_(np_s * 5 == res_s)
+ assert_(np_u * 5 == res_u)