diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2013-10-16 15:35:11 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2013-10-16 15:35:11 +0000 |
commit | e0984e1bd7e8afc4c8f04d191a11ce87492fdf38 (patch) | |
tree | 2b3249e693dd82f7a607c446a4fb97f4edc2f707 /test/handlers/protocol_test.py | |
parent | f911f1be9b07d0489f4e51c8d39e277c552ed9ae (diff) | |
download | pyserial-e0984e1bd7e8afc4c8f04d191a11ce87492fdf38.tar.gz |
do not allow negative baudrates, improve Python 3 compatibility of tests
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@480 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'test/handlers/protocol_test.py')
-rw-r--r-- | test/handlers/protocol_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/handlers/protocol_test.py b/test/handlers/protocol_test.py index 57cdf58..42ac4b2 100644 --- a/test/handlers/protocol_test.py +++ b/test/handlers/protocol_test.py @@ -72,7 +72,7 @@ class DummySerial(SerialBase): self.logger.debug('enabled logging') else: raise ValueError('unknown option: %r' % (option,)) - except ValueError, e: + except ValueError as e: raise SerialException('expected a string in the form "[test://][option[/option...]]": %s' % e) return (host, port) |