1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From: Neil Muller <drnlmuller+debian@gmail.com>
Date: Mon, 25 Mar 2024 11:40:58 +0200
Subject: Remove checks for installed formencode from the tests.
We remove the various checks for an installed formencode,
as that is not needed for the running the tests during the build
Name: 0002-Remove-checks-for-installed-formencode-from-the-test.patch
Forwarded: not-needed
---
tests/__init__.py | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/tests/__init__.py b/tests/__init__.py
index 922f3c1..c3918e2 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -11,16 +11,3 @@ os.environ['LANGUAGE'] = 'C'
# Enable deprecation warnings (which are disabled by default)
warnings.simplefilter('default')
-
-try:
- try:
- import importlib.metadata as metadata
- try:
- metadata.distribution("FormEncode")
- except metadata.PackageNotFoundError as error:
- raise ImportError from error
- except ImportError: # Python < 3.8
- import pkg_resources
- pkg_resources.require('FormEncode')
-except ImportError as error:
- raise ImportError("Install FormEncode before running the tests") from error
|