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:
Cosimo Lupo 2016-09-11 16:47:39 +01:00
parent 5fb9a13957
commit ee38446982

View File

@ -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.