diff options
author | Chris Liechti <cliechti@gmx.net> | 2016-05-25 01:50:37 +0200 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2016-05-25 01:50:37 +0200 |
commit | c57d2bcc5051c1d104ea6c1f1a3b489b6487f754 (patch) | |
tree | 9a438bb80870fef529eefaedf5ac33176ac096e4 | |
parent | 4dcd02532e96766cf01fb1625ebb742e585355ff (diff) | |
download | pyserial-git-c57d2bcc5051c1d104ea6c1f1a3b489b6487f754.tar.gz |
test: skip asyncio on non-posix systems
-rw-r--r-- | test/test_asyncio.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_asyncio.py b/test/test_asyncio.py index 4794bfe..99548b3 100644 --- a/test/test_asyncio.py +++ b/test/test_asyncio.py @@ -8,6 +8,7 @@ Test asyncio related functionality. """ +import os import unittest import serial @@ -22,6 +23,7 @@ except (ImportError, SyntaxError): pass else: + @unittest.skipIf(os.name != 'posix', "asyncio not supported on platform") class Test_asyncio(unittest.TestCase): """Test asyncio related functionality""" |