diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-07-29 21:59:52 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-07-29 21:59:52 +0000 |
commit | cb5b0aa0ad0f88ad33f496fe5835776164adb289 (patch) | |
tree | 4233f5f33c1d3953529f920a10c3ac22aaae42d5 | |
parent | a3a811fb57c412172745ce86aac94cefe9ce6af6 (diff) | |
download | pyserial-git-cb5b0aa0ad0f88ad33f496fe5835776164adb289.tar.gz |
add a notice when run with old Python
-rw-r--r-- | pyserial/examples/test_iolib.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pyserial/examples/test_iolib.py b/pyserial/examples/test_iolib.py index 2f6cd4b..e740a4c 100644 --- a/pyserial/examples/test_iolib.py +++ b/pyserial/examples/test_iolib.py @@ -27,6 +27,16 @@ On a 9 pole DSUB these are the pins (2-3) (4-6) (7-8) import unittest import sys + +if sys.version_info < (2, 6): + sys.stderr.write("""\ +============================================================================== +WARNING: this test is intended for Python 2.6 and newer where the io library +is available. This seems to be an older version of Python running. +Continuing anyway... +============================================================================== +""") + import io import serial |