Fix unittests for Python 2.7
This commit is contained in:
parent
f7bcdece5f
commit
5f8665940d
@ -22,9 +22,7 @@ try:
|
|||||||
from urllib.error import URLError
|
from urllib.error import URLError
|
||||||
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, URLError
|
||||||
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…
Reference in New Issue
Block a user