Skip to content

Commit 89e40ac

Browse files
committed
only skip test_convert_txt_slob_2_file_size_approx on 3.14
1 parent c003874 commit 89e40ac

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/test-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: sh ./scripts/test-deps.sh
3737
- name: Run tests
3838
env:
39-
SKIP_SLOB_WRITE_TEST: 1
39+
SKIP_TEST_SLOB_WRITE_FILE_SIZE_APPROX: 1
4040
run: bash scripts/ci/test.sh
4141
- name: Upload test artifacts
4242
if: always()

tests/g_aard2_slob_r_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import unittest
32

43
from glossary_v2_test import TestGlossaryBase
@@ -17,10 +16,6 @@ def __init__(self, *args, **kwargs):
1716
)
1817

1918
def setUp(self):
20-
if os.getenv("SKIP_SLOB_READ_TEST"):
21-
self.skipTest(
22-
"skipping aard2 slob read test because of env var SKIP_SLOB_READ_TEST"
23-
)
2419
TestGlossaryBase.setUp(self)
2520

2621
def convert_slob_txt(self, fname, fname2, resFiles, **convertArgs):

tests/g_aard2_slob_w_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ def __init__(self, *args, **kwargs):
1515
)
1616

1717
def setUp(self):
18-
if os.getenv("SKIP_SLOB_WRITE_TEST"):
19-
self.skipTest(
20-
"skipping aard2 slob write test because of env var SKIP_SLOB_WRITE_TEST"
21-
)
2218
TestGlossaryBase.setUp(self)
2319

2420
def test_convert_txt_slob_1(self):
@@ -35,6 +31,9 @@ def test_convert_txt_slob_1(self):
3531
)
3632

3733
def test_convert_txt_slob_2_file_size_approx(self):
34+
if os.getenv("SKIP_TEST_SLOB_WRITE_FILE_SIZE_APPROX"):
35+
print("skipping test_convert_txt_slob_2_file_size_approx")
36+
return
3837
fname = "300-ru-en"
3938
file_size_approx = 25000
4039
files = [

0 commit comments

Comments
 (0)