summaryrefslogtreecommitdiff
path: root/test/handlers/protocol_test.py
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2013-10-16 15:35:11 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2013-10-16 15:35:11 +0000
commite0984e1bd7e8afc4c8f04d191a11ce87492fdf38 (patch)
tree2b3249e693dd82f7a607c446a4fb97f4edc2f707 /test/handlers/protocol_test.py
parentf911f1be9b07d0489f4e51c8d39e277c552ed9ae (diff)
downloadpyserial-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.py2
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)