Fix Py3 incompatible in tests.

This commit is contained in:
Siu Kwan Lam 2012-07-25 19:55:22 -07:00
commit 0ca676eb8c
3 changed files with 14 additions and 3 deletions

View file

@ -3,7 +3,11 @@
# Tests accessing of instruction operands.
from llvm.core import *
from StringIO import StringIO
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
import logging, unittest
m = None