From c793511cdb71215d4686fa90b276951dc2983d1c Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Wed, 27 Jun 2012 13:06:42 +0200 Subject: Skip on non-Linux. --- demo/readdir.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'demo/readdir.py') diff --git a/demo/readdir.py b/demo/readdir.py index fdf4c55..04e8cd8 100644 --- a/demo/readdir.py +++ b/demo/readdir.py @@ -1,7 +1,11 @@ # A Linux-only demo # +import sys from cffi import FFI +if not sys.platform.startswith('linux'): + raise Exception("Linux-only demo") + ffi = FFI() ffi.cdef(""" -- cgit v1.2.1