Author: Vincent Legoll <[email protected]>
Branch: fix-1674
Changeset: r81466:ab0bd18d4930
Date: 2015-12-19 11:35 +0100
http://bitbucket.org/pypy/pypy/changeset/ab0bd18d4930/
Log: Minimize importing
diff --git a/pypy/module/micronumpy/test/test_ndarray.py
b/pypy/module/micronumpy/test/test_ndarray.py
--- a/pypy/module/micronumpy/test/test_ndarray.py
+++ b/pypy/module/micronumpy/test/test_ndarray.py
@@ -3252,8 +3252,8 @@
assert array(x, copy=True) is not x
def test_issue_1674(self):
- import numpy as np
- data = np.arange(15).reshape(3, 5) * 1.0
+ from numpy import arange
+ data = arange(15).reshape(3, 5) * 1.0
# array([[ 0., 1., 2., 3., 4.],
# [ 5., 6., 7., 8., 9.],
# [ 10., 11., 12., 13., 14.]])
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit