Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: numpy-multidim-shards
Changeset: r49461:cc5e404f423b
Date: 2011-11-16 09:15 +0200
http://bitbucket.org/pypy/pypy/changeset/cc5e404f423b/

Log:    fix those tests - downside: they're for fortran layout

diff --git a/pypy/module/micronumpy/test/test_numarray.py 
b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -42,7 +42,7 @@
         assert s.start == 19
         assert s.shape == [2, 1]
         assert s.shards == [45, 3]
-        assert s.backshards == [45, 3]
+        assert s.backshards == [45, 0]
         s = a.create_slice(space, self.newtuple(
             self.newslice(None, None, None), space.wrap(2)))
         assert s.start == 6
@@ -64,7 +64,7 @@
             self.newslice(None, None, None), space.wrap(2)]))
         assert s2.shape == [2, 3]
         assert s2.shards == [45, 1]
-        assert s2.backshards == [90, 2]
+        assert s2.backshards == [45, 2]
         assert s2.start == 1*15 + 2*3
 
     def test_negative_step(self):
@@ -73,7 +73,7 @@
         s = a.create_slice(space, self.newslice(None, None, -2))
         assert s.start == 135
         assert s.shards == [-30, 3, 1]
-        assert s.backshards == [-150, 12, 2]
+        assert s.backshards == [-120, 12, 2]
 
     def test_index_of_single_item(self):
         a = NDimArray(10*5*3, [10, 5, 3], MockDtype())
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to