[pypy-commit] pypy refactor-signature: some more tests
fijal
noreply at buildbot.pypy.org
Wed Dec 14 11:41:55 CET 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: refactor-signature
Changeset: r50493:f2e26827d79c
Date: 2011-12-14 12:41 +0200
http://bitbucket.org/pypy/pypy/changeset/f2e26827d79c/
Log: some more tests
diff --git a/pypy/module/micronumpy/test/test_base.py b/pypy/module/micronumpy/test/test_base.py
--- a/pypy/module/micronumpy/test/test_base.py
+++ b/pypy/module/micronumpy/test/test_base.py
@@ -34,6 +34,11 @@
assert v5.find_sig() is not v2.find_sig()
v6 = ar.descr_add(space, bool_ar)
assert v5.find_sig() is v6.find_sig()
+ v7 = v6.descr_add(space, v6)
+ sig7 = v7.find_sig()
+ assert sig7.left.left.iter_no == sig7.right.left.iter_no
+ assert sig7.left.left.iter_no != sig7.right.right.iter_no
+ assert sig7.left.right.iter_no == sig7.right.right.iter_no
def test_slice_signature(self, space):
float64_dtype = get_dtype_cache(space).w_float64dtype
More information about the pypy-commit
mailing list