File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ python-gvm (23.5.1-gos2204~1) abomination; urgency=medium
2+
3+ * Removed patched setup.py and added necessary dependencies
4+ for build system update (Closes: GOS-1452).
5+ - Added patch to test, to replace unnecessary pontos import.
6+
7+ -- Carlos A. Parra F. <carlos.parra@greenbone.net> Wed, 24 May 2023 11:27:46 +0200
8+
19python-gvm (23.4.2-gos2204~1) abomination; urgency=medium
210
311 * New upstream release and adjusted gbp.conf (Closes: PR-615).
Original file line number Diff line number Diff line change 1+ --- a/tests/xml/test_pretty_print.py
2+ +++ b/tests/xml/test_pretty_print.py
3+ @@ -22,7 +22,8 @@ from io import StringIO
4+ from unittest.mock import patch
5+
6+ import defusedxml.lxml as secET
7+ -from pontos.testing import temp_directory
8+ +from tempfile import TemporaryDirectory
9+ +from pathlib import Path
10+
11+ from gvm.errors import InvalidArgumentType
12+ from gvm.xml import pretty_print
13+ @@ -40,8 +41,9 @@ class PrettyPrintTestCase(unittest.TestC
14+ "</test>\n"
15+ )
16+
17+ - with temp_directory() as temp_dir:
18+ - test_file = temp_dir / "test.file"
19+ + with TemporaryDirectory() as temp_dir:
20+ + temp_dir_path = Path(temp_dir)
21+ + test_file = temp_dir_path / "test.file"
22+ with test_file.open("w", encoding="utf-8") as f:
23+ pretty_print(elem, file=f)
24+
Original file line number Diff line number Diff line change 1+ replace_pontos
You can’t perform that action at this time.
0 commit comments