Files
python-pytest-examples/newline.patch
Markéta Machová 3d3d529566 Accepting request 1238937 from home:mcalabkova:branches:devel:languages:python:pytest
- update to 0.0.15
  * Adopt uv
  * support for calling a function/coroutine
  * Fix for single line docstrings
  * Typechecking
  * Allow matching prefix with curly braces
- add newline.patch to adapt tests to pytest 8.3.4

OBS-URL: https://build.opensuse.org/request/show/1238937
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-examples?expand=0&rev=17
2025-01-20 10:44:23 +00:00

29 lines
712 B
Diff

Index: pytest_examples-0.0.15/tests/test_run_examples.py
===================================================================
--- pytest_examples-0.0.15.orig/tests/test_run_examples.py
+++ pytest_examples-0.0.15/tests/test_run_examples.py
@@ -171,6 +171,7 @@ def test_find_run_examples(example: Code
'@@ -4 +4 @@',
'-x =[1,2, 3]',
'+x = [1, 2, 3]',
+ '',
]
@@ -205,6 +206,7 @@ def test_find_run_examples(example: Code
'@@ -4 +4 @@',
'-x·=[1,2,·3]',
'+x·=·[1,·2,·3]',
+ '',
]
@@ -251,6 +253,7 @@ def test_find_run_examples(example: Code
'- 3',
'-]',
'+x = [1, 2, 3]',
+ '',
]