summaryrefslogtreecommitdiff
path: root/testing/test_ffi_backend.py
blob: 948222391a9ce42c59764700e242895e65e6bf87 (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 _cffi_backend


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

    @staticmethod
    def Backend():
        return _cffi_backend