projects
/
recode
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b78dce6
)
tests/common.py: The Python API is not optional, do not work around it.
author
François Pinard
<pinard@iro.umontreal.ca>
Sun, 1 Dec 2013 22:57:59 +0000
(17:57 -0500)
committer
François Pinard
<pinard@iro.umontreal.ca>
Mon, 2 Dec 2013 04:16:14 +0000
(23:16 -0500)
tests/common.py
patch
|
blob
|
history
diff --git
a/tests/common.py
b/tests/common.py
index 029e66e821777ffb02ffcd6f9c4c5d9c60b2ce88..0c3364485b0c527f851c7ad39f4d351e2db5873d 100644
(file)
--- a/
tests/common.py
+++ b/
tests/common.py
@@
-6,15
+6,9
@@
from __main__ import py
recode_program = os.environ.get('RECODE')
-try:
- import Recode
-except ImportError:
- # The Python API has not been installed.
- outer = None
- outer_iconv = None
-else:
- outer = Recode.Outer(iconv=False)
- outer_iconv = Recode.Outer(iconv=True)
+import Recode
+outer = Recode.Outer(iconv=False)
+outer_iconv = Recode.Outer(iconv=True)
class Run(dict):