[pypy-commit] pypy default: Move the test to the right class.

arigo noreply at buildbot.pypy.org
Thu Oct 24 09:04:28 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r67547:ec8875093ab9
Date: 2013-10-24 08:52 +0200
http://bitbucket.org/pypy/pypy/changeset/ec8875093ab9/

Log:	Move the test to the right class.

diff --git a/pypy/module/_cffi_backend/test/test_fastpath.py b/pypy/module/_cffi_backend/test/test_fastpath.py
--- a/pypy/module/_cffi_backend/test/test_fastpath.py
+++ b/pypy/module/_cffi_backend/test/test_fastpath.py
@@ -34,15 +34,6 @@
         assert buf[1] == 2.2
         assert buf[2] == 3.3
 
-    def test_bug(self):
-        import _cffi_backend
-        LONG = _cffi_backend.new_primitive_type('long')
-        five = _cffi_backend.cast(LONG, 5)
-        raises(TypeError, list, five)
-        DOUBLE = _cffi_backend.new_primitive_type('double')
-        five_and_a_half = _cffi_backend.cast(DOUBLE, 5.5)
-        raises(TypeError, list, five_and_a_half)
-
 
 class AppTest_fast_path_to_list(object):
     spaceconfig = dict(usemodules=('_cffi_backend', 'cStringIO'))
@@ -93,6 +84,14 @@
         pbuf = _cffi_backend.cast(P_LONG, buf)
         raises(TypeError, "list(pbuf)")
 
+    def test_bug(self):
+        import _cffi_backend
+        LONG = _cffi_backend.new_primitive_type('long')
+        five = _cffi_backend.cast(LONG, 5)
+        raises(TypeError, list, five)
+        DOUBLE = _cffi_backend.new_primitive_type('double')
+        five_and_a_half = _cffi_backend.cast(DOUBLE, 5.5)
+        raises(TypeError, list, five_and_a_half)
 
     def test_list_float(self):
         import _cffi_backend


More information about the pypy-commit mailing list