diff options
author | Armin Rigo <arigo@tunes.org> | 2012-06-27 13:06:42 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2012-06-27 13:06:42 +0200 |
commit | c793511cdb71215d4686fa90b276951dc2983d1c (patch) | |
tree | 945c8cdd9f140476e4d8d2b32add9fd4fdfe9c99 /demo/readdir.py | |
parent | f7f774aa4c0740bd1a3c67ca01ebddac2695f7f6 (diff) | |
download | cffi-c793511cdb71215d4686fa90b276951dc2983d1c.tar.gz |
Skip on non-Linux.
Diffstat (limited to 'demo/readdir.py')
-rw-r--r-- | demo/readdir.py | 4 |
1 files changed, 4 insertions, 0 deletions
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(""" |