14
0
forked from pool/python-pylzma

Accepting request 919099 from home:pgajdos:python

- %check: use %pyunittest_arch rpm macro
- added patches
  fix https://github.com/fancycode/pylzma/issues/76
  + python-pylzma-test-python3.patch

OBS-URL: https://build.opensuse.org/request/show/919099
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylzma?expand=0&rev=11
This commit is contained in:
2021-09-15 12:06:13 +00:00
committed by Git OBS Bridge
parent 024384c5d1
commit bf583f0780
3 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
Index: pylzma-0.5.0/tests/test_usage.py
===================================================================
--- pylzma-0.5.0.orig/tests/test_usage.py 2018-09-26 20:36:11.000000000 +0200
+++ pylzma-0.5.0/tests/test_usage.py 2021-09-15 11:19:08.201378252 +0200
@@ -38,7 +38,7 @@ sys.path.insert(0, ROOT)
def cleanup(path):
try:
shutil.rmtree(path)
- except EnvironmentError, e:
+ except EnvironmentError as e:
if e.errno != errno.ENOENT:
raise