File: suppress-post-install-tests.patch

package info (click to toggle)
python-lsp-black 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 212 kB
  • sloc: python: 395; makefile: 23
file content (26 lines) | stat: -rw-r--r-- 774 bytes parent folder | download
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
From: Julian Gilbey <julian-git@d-and-j.net>
Date: Tue, Dec 29 17:04:53 2020 +0000
Subject: suppress-post-install-tests

---
 tests/test_plugin.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_plugin.py b/tests/test_plugin.py
index ae3a43e..7aba9e8 100644
--- a/tests/test_plugin.py
+++ b/tests/test_plugin.py
@@ -1,4 +1,5 @@
 # Standard library imports
+import os
 import types
 from pathlib import Path
 from unittest.mock import Mock
@@ -269,6 +270,7 @@ def test_load_config_defaults(config):
     }
 
 
+@pytest.mark.skipif('DEB_BUILD_ARCH' in os.environ, reason="Post-install only")
 def test_entry_point():
     distribution = pkg_resources.get_distribution("python-lsp-black")
     entry_point = distribution.get_entry_info("pylsp", "pylsp_black")