File tests_build.patch of Package python-pyglossary
---
tests/__init__.py | 3 +++
tests/g_aard2_slob_r_test.py | 3 +++
2 files changed, 6 insertions(+)
Index: pyglossary-5.2.1/tests/__init__.py
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ pyglossary-5.2.1/tests/__init__.py 2026-01-03 17:01:37.949638460 +0100
@@ -0,0 +1,3 @@
+import os
+
+NO_NET = 'NO_NETWORK' in os.environ
Index: pyglossary-5.2.1/tests/g_aard2_slob_r_test.py
===================================================================
--- pyglossary-5.2.1.orig/tests/g_aard2_slob_r_test.py 2025-12-05 06:46:55.000000000 +0100
+++ pyglossary-5.2.1/tests/g_aard2_slob_r_test.py 2026-01-03 17:10:42.619053562 +0100
@@ -1,7 +1,10 @@
import unittest
+import tests
from glossary_v2_test import TestGlossaryBase
+if tests.NO_NET:
+ raise unittest.SkipTest("Module skipped because network is not available.")
class TestGlossarySlobRead(TestGlossaryBase):
def __init__(self, *args, **kwargs):