File: 0007-Allow-a-test-to-run-on-different-pytest-versions.patch

package info (click to toggle)
fpdf2 2.8.4-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 53,860 kB
  • sloc: python: 39,487; sh: 133; makefile: 12
file content (21 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Elena ``of Valhalla'' Grandi <valhalla@debian.org>
Date: Wed, 19 Jun 2024 10:13:52 +0200
Subject: Allow a test to run on different pytest versions.

---
 test/text/test_multi_cell.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/text/test_multi_cell.py b/test/text/test_multi_cell.py
index 0ccea89..6cd71b4 100644
--- a/test/text/test_multi_cell.py
+++ b/test/text/test_multi_cell.py
@@ -293,7 +293,7 @@ def test_multi_cell_split_only():  # discussion 314
         assert (
             pdf.multi_cell(w=0, h=LINE_HEIGHT, text=text, split_only=True) == expected
         )
-    assert len(record) == 1
+    assert len(record) >= 1
     assert_same_file(record[0].filename, __file__)