Source

cffi / testing / test_ffi_backend.py

Full commit
Alex Gaynor 3a90457 






Armin Rigo 15dc0c6 
Armin Rigo d3d6904 


Armin Rigo 15dc0c6 


Armin Rigo fec880d 
Armin Rigo d3d6904 


import sys

import py

if '__pypy__' in sys.modules:
    py.test.skip("C backend tests are CPython only")

from testing import backend_tests, test_function, test_ownlib
import _ffi_backend


class TestFFI(backend_tests.BackendTests,
              test_function.TestFunction,
              test_ownlib.TestOwnLib):
    TypeRepr = "<ctype '%s'>"

    @staticmethod
    def Backend():
        return _ffi_backend