Hanno Böck commited on 2026-10-12 18:08:47
Zeige 1 geänderte Dateien mit 0 Einfügungen und 6 Löschungen.
| ... | ... |
@@ -4,7 +4,6 @@ import os |
| 4 | 4 |
import re |
| 5 | 5 |
import shutil |
| 6 | 6 |
import subprocess |
| 7 |
-import sys |
|
| 8 | 7 |
import tempfile |
| 9 | 8 |
import unittest |
| 10 | 9 |
|
| ... | ... |
@@ -27,12 +26,7 @@ class TestFreewvsData(unittest.TestCase): |
| 27 | 26 |
bdir = os.path.basename(tdir) |
| 28 | 27 |
for tarball in glob.glob(tdir + "/dist/*"): |
| 29 | 28 |
tname = os.path.basename(tarball) |
| 30 |
- if sys.version_info < (3, 12) or tarball.endswith(".zip"):
|
|
| 31 | 29 |
shutil.unpack_archive(tarball, f"{tmp}/{bdir}/{tname}-src")
|
| 32 |
- else: |
|
| 33 |
- shutil.unpack_archive( |
|
| 34 |
- tarball, f"{tmp}/{bdir}/{tname}-src", filter="data"
|
|
| 35 |
- ) |
|
| 36 | 30 |
fwrun = subprocess.run( |
| 37 | 31 |
["./freewvs", "-a", tmp + "/" + bdir], |
| 38 | 32 |
stdout=subprocess.PIPE, |
| 39 | 33 |