glifLib.py: use +IGNORE_EXCEPTION_DETAIL to make doctest work on both Python2 and 3
http://python3porting.com/problems.html#handling-expected-exceptions
This commit is contained in:
parent
5fb9a13957
commit
ee38446982
@ -1291,7 +1291,7 @@ def _number(s):
|
||||
1
|
||||
>>> _number("1.0")
|
||||
1.0
|
||||
>>> _number("a")
|
||||
>>> _number("a") # doctest: +IGNORE_EXCEPTION_DETAIL
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
GlifLibError: Could not convert a to an int or float.
|
||||
|
Loading…
x
Reference in New Issue
Block a user