Fix unittests for Python 2.7
This commit is contained in:
parent
1b83f01581
commit
f7bcdece5f
@ -23,6 +23,8 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
# Fall back to Python 2's urllib2
|
# Fall back to Python 2's urllib2
|
||||||
from urllib2 import urlopen, Request
|
from urllib2 import urlopen, Request
|
||||||
|
class URLError(Exception):
|
||||||
|
pass
|
||||||
import arxiv2bib as arxiv_metadata
|
import arxiv2bib as arxiv_metadata
|
||||||
import libbmc.tools as tools
|
import libbmc.tools as tools
|
||||||
import bibtexparser
|
import bibtexparser
|
||||||
|
Loading…
x
Reference in New Issue
Block a user