forked from pool/python-bibtexparser
- unittest2 is not neccessary for python3 - added patches use unittest2 only if present, fall back to unittest + python-bibtexparser-remove-unittest2.patch OBS-URL: https://build.opensuse.org/request/show/810593 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bibtexparser?expand=0&rev=6
14 lines
603 B
Diff
14 lines
603 B
Diff
Index: python-bibtexparser-1.1.0/bibtexparser/tests/test_crossref_resolving.py
|
|
===================================================================
|
|
--- python-bibtexparser-1.1.0.orig/bibtexparser/tests/test_crossref_resolving.py 2019-01-17 16:31:34.000000000 +0100
|
|
+++ python-bibtexparser-1.1.0/bibtexparser/tests/test_crossref_resolving.py 2020-06-01 11:32:48.246219654 +0200
|
|
@@ -1,4 +1,7 @@
|
|
-import unittest2 as unittest
|
|
+try:
|
|
+ import unittest2 as unittest
|
|
+except ImportError:
|
|
+ import unittest
|
|
from bibtexparser.bibdatabase import BibDatabase
|
|
from bibtexparser.bparser import BibTexParser
|
|
|