summaryrefslogtreecommitdiff
path: root/testing/test_ffi_backend.py
blob: fc4afff4cfcc6fe41b7c04af9a07799f492a2c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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