File python-pylzma-test-python3.patch of Package python-pylzma
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