summaryrefslogtreecommitdiff
path: root/testing/cffi1/test_commontypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/cffi1/test_commontypes.py')
-rw-r--r--testing/cffi1/test_commontypes.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/cffi1/test_commontypes.py b/testing/cffi1/test_commontypes.py
index ea7ffde..9e7d79e 100644
--- a/testing/cffi1/test_commontypes.py
+++ b/testing/cffi1/test_commontypes.py
@@ -1,4 +1,5 @@
-import py, os, cffi, re
+import os, cffi, re
+import pytest
import _cffi_backend
@@ -7,7 +8,7 @@ def getlines():
f = open(os.path.join(os.path.dirname(cffi.__file__),
'..', 'c', 'commontypes.c'))
except IOError:
- py.test.skip("cannot find ../c/commontypes.c")
+ pytest.skip("cannot find ../c/commontypes.c")
lines = [line for line in f.readlines() if line.strip().startswith('EQ(')]
f.close()
return lines