[pypy-commit] pypy py3k: Don't check how many warnings are emitted for array.{from, to}string().
Manuel Jacob
noreply at buildbot.pypy.org
Wed Feb 13 22:24:56 CET 2013
Author: Manuel Jacob
Branch: py3k
Changeset: r61196:039b56a3d65b
Date: 2013-02-12 15:26 +0100
http://bitbucket.org/pypy/pypy/changeset/039b56a3d65b/
Log: Don't check how many warnings are emitted for
array.{from,to}string().
diff --git a/lib-python/3.2/test/test_array.py b/lib-python/3.2/test/test_array.py
--- a/lib-python/3.2/test/test_array.py
+++ b/lib-python/3.2/test/test_array.py
@@ -383,7 +383,10 @@
if a.itemsize>1:
self.assertRaises(ValueError, b.fromstring, "x")
nb_warnings += 1
- self.assertEqual(len(r), nb_warnings)
+ if support.check_impl_detail():
+ # PyPy's multimethod dispatch is different from CPython's
+ # on CPython the warning is emitted before checking the arguments
+ self.assertEqual(len(r), nb_warnings)
def test_tofrombytes(self):
a = array.array(self.typecode, 2*self.example)
More information about the pypy-commit
mailing list