forked from pool/python-bibtexparser
Accepting request 810593 from home:pgajdos:python
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
35ade27be2
commit
e1b84222ca
13
python-bibtexparser-remove-unittest2.patch
Normal file
13
python-bibtexparser-remove-unittest2.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user