[pypy-commit] pypy numpy-dtype-refactor: update for new module name
alex_gaynor
noreply at buildbot.pypy.org
Sat Nov 19 19:21:48 CET 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-dtype-refactor
Changeset: r49551:be3f1bb6a45c
Date: 2011-11-19 12:53 -0500
http://bitbucket.org/pypy/pypy/changeset/be3f1bb6a45c/
Log: update for new module name
diff --git a/pypy/module/micronumpy/test/test_dtypes.py b/pypy/module/micronumpy/test/test_dtypes.py
--- a/pypy/module/micronumpy/test/test_dtypes.py
+++ b/pypy/module/micronumpy/test/test_dtypes.py
@@ -168,7 +168,7 @@
class AppTestTypes(BaseNumpyAppTest):
def test_abstract_types(self):
- import numpy
+ import numpypy as numpy
raises(TypeError, numpy.generic, 0)
raises(TypeError, numpy.number, 0)
raises(TypeError, numpy.integer, 0)
@@ -179,7 +179,7 @@
raises(TypeError, numpy.inexact, 0)
def test_bool(self):
- import numpy
+ import numpypy as numpy
assert numpy.bool_.mro() == [numpy.bool_, numpy.generic, object]
assert numpy.bool_(3) is numpy.True_
@@ -193,7 +193,7 @@
assert X(True) is numpy.True_
def test_int8(self):
- import numpy
+ import numpypy as numpy
assert numpy.int8.mro() == [numpy.int8, numpy.signedinteger, numpy.integer, numpy.number, numpy.generic, object]
@@ -208,7 +208,7 @@
assert repr(x) == "-128"
def test_float64(self):
- import numpy
+ import numpypy as numpy
assert numpy.float64.mro() == [numpy.float64, numpy.floating, numpy.inexact, numpy.number, numpy.generic, float, object]
@@ -219,7 +219,7 @@
assert numpy.float64(2.0) == 2.0
def test_subclass_type(self):
- import numpy
+ import numpypy as numpy
class X(numpy.float64):
def m(self):
More information about the pypy-commit
mailing list