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

package info (click to toggle)
fpdf2 2.8.3-1%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 53,600 kB
  • sloc: python: 38,981; sh: 84; makefile: 12
file content (21 lines) | stat: -rw-r--r-- 711 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 afdd9c0..b56dbc5 100644
--- a/test/text/test_multi_cell.py
+++ b/test/text/test_multi_cell.py
@@ -275,7 +275,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 record[0].filename == __file__