File: fix-pytest6.patch

package info (click to toggle)
python-mechanicalsoup 0.10.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 424 kB
  • sloc: python: 1,484; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Ondřej Nový <onovy@debian.org>
Subject: Fix compatibility with pytest 6

--- a/tests/test_stateful_browser.py
+++ b/tests/test_stateful_browser.py
@@ -258,7 +258,7 @@
     browser, url = setup_mock_browser()
     browser.open_fake_page(submit_form_noaction)
     browser.select_form('#choose-submit-form')
-    with pytest.raises(ValueError, message="no URL to submit to"):
+    with pytest.raises(ValueError):
         browser.submit_selected()