* test cases can no longer call yield. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-py?expand=0&rev=40
14 lines
565 B
Diff
14 lines
565 B
Diff
Index: py-1.11.0/testing/code/test_source.py
|
|
===================================================================
|
|
--- py-1.11.0.orig/testing/code/test_source.py
|
|
+++ py-1.11.0/testing/code/test_source.py
|
|
@@ -294,7 +294,7 @@ class TestSourceParsingAndCompiling:
|
|
|
|
for comp in py.code.compile, py.code.Source.compile:
|
|
for name in '', None, 'my':
|
|
- yield check, comp, name
|
|
+ check(comp, name)
|
|
|
|
def test_offsetless_synerr(self):
|
|
py.test.raises(SyntaxError, py.code.compile, "lambda a,a: 0", mode='eval')
|