-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix builds with Cython 3 #731
Conversation
This is a *de minimis* fix for building with Cython 3. Recent Cython<3 releases provided `Cython.Distutils.build_ext` as an alias to `Cython.Distutils.old_build_ext.old_build_ext`; Cython 3 drops this alias and instead uses a wholly new `Cython.Distutils.build_ext` that does not provide the `cython_sources` function used in `setup.py`. Explicitly importing `old_build_ext` preserves the existing behavior for recent Cython<3 and uses the correct behavior for Cython 3. Should the import fail (*e.g.*, because the version of Cython available predates the availability of `old_build_ext`), the import falls back to just `Cython.Distutils.build_ext`. Signed-off-by: Andrew J. Hesford <[email protected]>
Thank you for providing a proper fix for the cython issue. Can this be applied to |
The patch applies cleanly to the 5.4.1 tag. |
git clean -xdf tar zcvf ../python-yaml_5.4.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_5.4.1-1.spec mv ../python*-yaml*5.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-5.4.1/ rm -rf ../python*-yaml*5.4.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0-1.spec mv ../python*-yaml*6.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0/ rm -rf ../python*-yaml*6.0*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0.1-1.spec mv ../python*-yaml*6.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0.1/ rm -rf ../python*-yaml*6.0.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0.1-1.spec mv ../python*-yaml*6.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0.1/ rm -rf ../python*-yaml*6.0.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
Hi @ahesford @SoftwareApe do we have timeline when would this fix be merged? Thanks! |
Hi, we also need this fix as our docker image get broken and we can't use |
@shuyangwu-dd @praysml we're in the same boat as you. I don't think either @ahesford or I are pyyaml maintainers. We're just hoping it's soon. |
@ingydotnet @nitzmahone @perlpunk Hello, anyone from the maintainers can help? |
I didn't see the prior attempt because it's a 1.5-year-old WIP that also hard requires Cython 3 when it shouldn't. |
@ahesford: That is exactly why I made that comment. After reading issue #601 and its PRs #602, #702, #729 and this one as well as issue #724 and the duplicate issues #723 and #728 and the #702 backport PR #726, I thought a little overview might be useful here. |
This PR fixed the issue for me in v5.4.1. It would be nice to get this merged officially and have a v5.4.1.post1 released |
@willofferfit: The issue seems to be a reluctance to touch 5.x branch releases, see #726 (comment). |
As I've mentioned several other places: getting a functional vaniilla Cython3 PEP517 build working on any branch from the past several years isn't the hard part, it's rebuilding all the existing wheels on 5.4.x- if we released this change without that, the majority of folks that use the wheels will suddenly break. The biggest (known) problem there is the Windows Python 2.x wheels, since Microsoft has killed off the downloads of the necessary SDK bits and related VS versions, as well as the Windows GHA runner versions that had (most) of those bits preinstalled. It took me a lot of screwing around to get all that stuff working properly a few years ago (eg, not loading multiple CRT versions and heaps in older Pythons that weren't built against the Universal CRT), and I'm not interested in doing it again. It's all possible if one spends enough time on it, but I'd much rather spend the limited time I have to donate to this project making it work better for the future instead of patching up long-dead releases for projects unwilling/unable to make the one-line code change to work with >=6.0. |
I'd argue Ubuntu 22.04 has a big enough install base not to consider 5.x long dead. And the problem with Python is not our unwillingness to change our code, but our inability to fix everybody's code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a far better solution than the applied #702 workaround in 6.0.1, however, pyyaml will soon have to move to an entirely different solution soon enough since this is all dependent on distutils
(and Cython.Distutils
) which according to PEP 632 has been deprecated since Python 3.10 and is removed from Python 3.12 which is due out 2023-10-02 (according to PEP 693).
A new solution that moves from the deprecated distutils
and Cython.Distutils
(including Cython.Distutils.old_build_ext
or Cthon.Distutils.build_ext
and cython_sources
) will need to be developed. This means either:
- moving to
Cython.Build.build_ext
- directly calling
cythonize
as per a Make setup.py work with Cython 3 and Cython 0.29 #729 style solution
Currently pyyaml intentionally makes Cython a build-time only dependency so that one need not be concerned about Cython during installs of prebuilt wheels, etc. It accomplishes that via with_cython
.
Cython documents a similar method at Distributing Cython modules (which uses USE_CYTHON
instead of with_cython
) but only for the direct cythonize
call method and not for Cython.Build.build_ext
method (which is documented but only as a dependency all the time).
I believe a build-time only dependency on Cython.Build.build_ext
could be developed by porting from the current build-time only dependency on Cython.Distutils.old_build_ext
or Cthon.Distutils.build_ext
(and cython_sources
).
(cross-posting my comment from the Cython issue): I don't think we want to move the discussion back to Cython- this is all on us at this point to just redo PyYAML's build from a clean sheet of paper. That's been exactly the plan all along, but due to the sheer number of "knobs" provided by the old distutils mechanism to affect the build that had no way to be passed through (eg preprocessor defines, include dirs, linker directives, "just give me pure Python"), plus all the "organically-grown" logic that's crept in over the years (much of which is incomplete or plain broken today) we've been kinda stuck. Now that pip and setuptools have (somewhat recently) agreed on passing through options via config_settings, it's "only" a matter of completely obliterating most of setup.py and coming up with the right set of knobs that can be expressed via config_settings to do everything that's needed, and rewriting it to (hopefully) just call Cythonize directly without the need to subclass anything. I've poked at it a couple times, and it still kinda sucks from a UX perspective, but not nearly as much as doing it all via envvars (which is what we've been doing since adding PEP517 support a few years back). The other thing that keeps me in "analysis paralysis" mode on this project is that some folks are poking at a libfyaml extension, which would be awesome to integrate, but that probably needs to be accounted for in the build design as well. The current distutils stuff sorta supports dynamic selection/build of multiple extensions (though it's been just libyaml for so long that in reality it's probably busted anyway). Doing libfyaml support as a separate top-level package or a namespace package causes all sorts of cross-pollination problems with OS packaged libs and stuff, so IMO if we're going to do that, it really needs to happen all in the main package build, with the extensions being embedded as proper subpackages. |
@nitzmahone: I totally agree and I was just researching the best ways to accomplish such. To that end I posted cython/cython#4568 (comment) asking them to help improve the documentation for build-time only dependency usage of |
Thank you for this simple solution. |
Have you given promises to never release an incompatible version? Then you'd stay on version 5.4.x- forever... |
git clean -xdf tar zcvf ../python-yaml_6.0.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0.1-1.spec cp ../python*-yaml*6.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0.1/ rm -rf ../python*-yaml*6.0.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_5.4.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_5.4.1-1.spec cp ../python*-yaml*5.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-5.4.1/ rm -rf ../python*-yaml*5.4.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0-1.spec cp ../python*-yaml*6.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0/ rm -rf ../python*-yaml*6.0*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_5.4.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_5.4.1-1.spec cp ../python*-yaml*5.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-5.4.1/ rm -rf ../python*-yaml*5.4.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0-1.spec cp ../python*-yaml*6.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0/ rm -rf ../python*-yaml*6.0*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0.1-1.spec cp ../python*-yaml*6.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0.1/ rm -rf ../python*-yaml*6.0.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_5.4.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_5.4.1-1.spec cp ../python*-yaml*5.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-5.4.1/ rm -rf ../python*-yaml*5.4.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0-1.spec cp ../python*-yaml*6.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0/ rm -rf ../python*-yaml*6.0*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0.1-1.spec cp ../python*-yaml*6.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0.1/ rm -rf ../python*-yaml*6.0.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_5.4.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_5.4.1-1.spec cp ../python*-yaml*5.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-5.4.1/ rm -rf ../python*-yaml*5.4.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0-1.spec cp ../python*-yaml*6.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0/ rm -rf ../python*-yaml*6.0*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
git clean -xdf tar zcvf ../python-yaml_6.0.1.orig.tar.gz --exclude=.git . debuild -uc -us cp python-yaml.spec ../python-yaml_6.0.1-1.spec cp ../python*-yaml*6.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/yaml-pyyaml-6.0.1/ rm -rf ../python*-yaml*6.0.1*.* See yaml#731 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
Just tested this PR. --- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,3 +1,3 @@
[build-system]
-requires = ["setuptools", "wheel", "Cython<3.0"]
+requires = ["setuptools", "wheel", "Cython"]
build-backend = "setuptools.build_meta"
With that patch I was able to build Here is pytest output:+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyyaml-6.0.1-15.fc36.x86_64/usr/lib64/python3.9/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyyaml-6.0.1-15.fc36.x86_64/usr/lib/python3.9/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.9.18, pytest-8.1.1, pluggy-1.4.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1
configfile: pyproject.toml
collected 109 items
tests/lib/test_canonical.py EEE [ 2%]
tests/lib/test_constructor.py EE [ 4%]
tests/lib/test_dump_load.py ... [ 7%]
tests/lib/test_emitter.py EEEE [ 11%]
tests/lib/test_errors.py EEEEE [ 15%]
tests/lib/test_input_output.py EEEEE [ 20%]
tests/lib/test_mark.py E [ 21%]
tests/lib/test_multi_constructor.py E [ 22%]
tests/lib/test_reader.py E [ 22%]
tests/lib/test_recursive.py E [ 23%]
tests/lib/test_representer.py E [ 24%]
tests/lib/test_resolver.py EEE [ 27%]
tests/lib/test_schema.py E [ 28%]
tests/lib/test_sort_keys.py E [ 29%]
tests/lib/test_structure.py EEEEE [ 33%]
tests/lib/test_tokens.py EE [ 35%]
tests/lib/test_yaml.py ...EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 69%]
tests/lib/test_yaml_ext.py .FEEE.FFFFFFFFFFFFFFFFFFFFFFFFFFF [100%]
========================================================================================== ERRORS ===========================================================================================
_________________________________________________________________________ ERROR at setup of test_canonical_scanner __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py, line 3
def test_canonical_scanner(canonical_filename, verbose=False):
E fixture 'canonical_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py:3
__________________________________________________________________________ ERROR at setup of test_canonical_parser __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py, line 14
def test_canonical_parser(canonical_filename, verbose=False):
E fixture 'canonical_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py:14
__________________________________________________________________________ ERROR at setup of test_canonical_error ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py, line 25
def test_canonical_error(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py:25
_________________________________________________________________________ ERROR at setup of test_constructor_types __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_constructor.py, line 254
def test_constructor_types(data_filename, code_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_constructor.py:254
______________________________________________________________________ ERROR at setup of test_subclass_blacklist_types ______________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_constructor.py, line 285
def test_subclass_blacklist_types(data_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_constructor.py:285
__________________________________________________________________________ ERROR at setup of test_emitter_on_data ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py, line 16
def test_emitter_on_data(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py:16
________________________________________________________________________ ERROR at setup of test_emitter_on_canonical ________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py, line 28
def test_emitter_on_canonical(canonical_filename, verbose=False):
E fixture 'canonical_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py:28
___________________________________________________________________________ ERROR at setup of test_emitter_styles ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py, line 41
def test_emitter_styles(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py:41
___________________________________________________________________________ ERROR at setup of test_emitter_events ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py, line 90
def test_emitter_events(events_filename, verbose=False):
E fixture 'events_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py:90
____________________________________________________________________________ ERROR at setup of test_loader_error ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 3
def test_loader_error(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:3
________________________________________________________________________ ERROR at setup of test_loader_error_string _________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 15
def test_loader_error_string(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:15
________________________________________________________________________ ERROR at setup of test_loader_error_single _________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 27
def test_loader_error_single(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:27
___________________________________________________________________________ ERROR at setup of test_emitter_error ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 39
def test_emitter_error(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:39
____________________________________________________________________________ ERROR at setup of test_dumper_error ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 52
def test_dumper_error(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:52
___________________________________________________________________________ ERROR at setup of test_unicode_input ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 4
def test_unicode_input(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:4
________________________________________________________________________ ERROR at setup of test_unicode_input_errors ________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 25
def test_unicode_input_errors(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:25
___________________________________________________________________________ ERROR at setup of test_unicode_output ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 50
def test_unicode_output(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:50
____________________________________________________________________________ ERROR at setup of test_file_output _____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 86
def test_file_output(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:86
__________________________________________________________________________ ERROR at setup of test_unicode_transfer __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 115
def test_unicode_transfer(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:115
_______________________________________________________________________________ ERROR at setup of test_marks ________________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_mark.py, line 3
def test_marks(marks_filename, verbose=False):
E fixture 'marks_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_mark.py:3
_________________________________________________________________________ ERROR at setup of test_multi_constructor __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_multi_constructor.py, line 31
def test_multi_constructor(input_filename, code_filename, verbose=False):
E fixture 'input_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_multi_constructor.py:31
____________________________________________________________________________ ERROR at setup of test_stream_error ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_reader.py, line 14
def test_stream_error(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_reader.py:14
_____________________________________________________________________________ ERROR at setup of test_recursive ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_recursive.py, line 24
def test_recursive(recursive_filename, verbose=False):
E fixture 'recursive_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_recursive.py:24
_________________________________________________________________________ ERROR at setup of test_representer_types __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_representer.py, line 5
def test_representer_types(code_filename, verbose=False):
E fixture 'code_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_representer.py:5
_________________________________________________________________________ ERROR at setup of test_implicit_resolver __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py, line 4
def test_implicit_resolver(data_filename, detect_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py:4
________________________________________________________________________ ERROR at setup of test_path_resolver_loader ________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py, line 60
def test_path_resolver_loader(data_filename, path_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py:60
________________________________________________________________________ ERROR at setup of test_path_resolver_dumper ________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py, line 77
def test_path_resolver_dumper(data_filename, path_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py:77
_________________________________________________________________________ ERROR at setup of test_implicit_resolver __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_schema.py, line 53
def test_implicit_resolver(data_filename, skip_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_schema.py:53
_____________________________________________________________________________ ERROR at setup of test_sort_keys ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_sort_keys.py, line 5
def test_sort_keys(input_filename, sorted_filename, verbose=False):
E fixture 'input_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_sort_keys.py:5
_____________________________________________________________________________ ERROR at setup of test_structure ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py, line 34
def test_structure(data_filename, structure_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py:34
_______________________________________________________________________________ ERROR at setup of test_parser _______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py, line 73
def test_parser(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py:73
________________________________________________________________________ ERROR at setup of test_parser_on_canonical _________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py, line 91
def test_parser_on_canonical(canonical_filename, verbose=False):
E fixture 'canonical_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py:91
______________________________________________________________________________ ERROR at setup of test_composer ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py, line 123
def test_composer(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py:123
____________________________________________________________________________ ERROR at setup of test_constructor _____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py, line 175
def test_constructor(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py:175
_______________________________________________________________________________ ERROR at setup of test_tokens _______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_tokens.py, line 44
def test_tokens(data_filename, tokens_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_tokens.py:44
______________________________________________________________________________ ERROR at setup of test_scanner _______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_tokens.py, line 63
def test_scanner(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_tokens.py:63
_______________________________________________________________________________ ERROR at setup of test_marks ________________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_mark.py, line 3
def test_marks(marks_filename, verbose=False):
E fixture 'marks_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_mark.py:3
____________________________________________________________________________ ERROR at setup of test_stream_error ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_reader.py, line 14
def test_stream_error(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_reader.py:14
_________________________________________________________________________ ERROR at setup of test_canonical_scanner __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py, line 3
def test_canonical_scanner(canonical_filename, verbose=False):
E fixture 'canonical_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py:3
__________________________________________________________________________ ERROR at setup of test_canonical_parser __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py, line 14
def test_canonical_parser(canonical_filename, verbose=False):
E fixture 'canonical_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py:14
__________________________________________________________________________ ERROR at setup of test_canonical_error ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py, line 25
def test_canonical_error(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_canonical.py:25
_______________________________________________________________________________ ERROR at setup of test_tokens _______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_tokens.py, line 44
def test_tokens(data_filename, tokens_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_tokens.py:44
______________________________________________________________________________ ERROR at setup of test_scanner _______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_tokens.py, line 63
def test_scanner(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_tokens.py:63
_____________________________________________________________________________ ERROR at setup of test_structure ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py, line 34
def test_structure(data_filename, structure_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py:34
_______________________________________________________________________________ ERROR at setup of test_parser _______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py, line 73
def test_parser(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py:73
________________________________________________________________________ ERROR at setup of test_parser_on_canonical _________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py, line 91
def test_parser_on_canonical(canonical_filename, verbose=False):
E fixture 'canonical_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py:91
______________________________________________________________________________ ERROR at setup of test_composer ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py, line 123
def test_composer(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_structure.py:123
____________________________________________________________________________ ERROR at setup of test_loader_error ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 3
def test_loader_error(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:3
________________________________________________________________________ ERROR at setup of test_loader_error_string _________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 15
def test_loader_error_string(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:15
________________________________________________________________________ ERROR at setup of test_loader_error_single _________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 27
def test_loader_error_single(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:27
___________________________________________________________________________ ERROR at setup of test_emitter_error ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 39
def test_emitter_error(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:39
____________________________________________________________________________ ERROR at setup of test_dumper_error ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py, line 52
def test_dumper_error(error_filename, verbose=False):
E fixture 'error_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_errors.py:52
_________________________________________________________________________ ERROR at setup of test_implicit_resolver __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_schema.py, line 53
def test_implicit_resolver(data_filename, skip_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_schema.py:53
________________________________________________________________________ ERROR at setup of test_path_resolver_loader ________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py, line 60
def test_path_resolver_loader(data_filename, path_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py:60
________________________________________________________________________ ERROR at setup of test_path_resolver_dumper ________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py, line 77
def test_path_resolver_dumper(data_filename, path_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_resolver.py:77
_________________________________________________________________________ ERROR at setup of test_constructor_types __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_constructor.py, line 254
def test_constructor_types(data_filename, code_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_constructor.py:254
______________________________________________________________________ ERROR at setup of test_subclass_blacklist_types ______________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_constructor.py, line 285
def test_subclass_blacklist_types(data_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_constructor.py:285
__________________________________________________________________________ ERROR at setup of test_emitter_on_data ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py, line 16
def test_emitter_on_data(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py:16
________________________________________________________________________ ERROR at setup of test_emitter_on_canonical ________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py, line 28
def test_emitter_on_canonical(canonical_filename, verbose=False):
E fixture 'canonical_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py:28
___________________________________________________________________________ ERROR at setup of test_emitter_styles ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py, line 41
def test_emitter_styles(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py:41
___________________________________________________________________________ ERROR at setup of test_emitter_events ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py, line 90
def test_emitter_events(events_filename, verbose=False):
E fixture 'events_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_emitter.py:90
_________________________________________________________________________ ERROR at setup of test_representer_types __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_representer.py, line 5
def test_representer_types(code_filename, verbose=False):
E fixture 'code_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_representer.py:5
_____________________________________________________________________________ ERROR at setup of test_recursive ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_recursive.py, line 24
def test_recursive(recursive_filename, verbose=False):
E fixture 'recursive_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_recursive.py:24
___________________________________________________________________________ ERROR at setup of test_unicode_input ____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 4
def test_unicode_input(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:4
________________________________________________________________________ ERROR at setup of test_unicode_input_errors ________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 25
def test_unicode_input_errors(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:25
___________________________________________________________________________ ERROR at setup of test_unicode_output ___________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 50
def test_unicode_output(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:50
____________________________________________________________________________ ERROR at setup of test_file_output _____________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 86
def test_file_output(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:86
__________________________________________________________________________ ERROR at setup of test_unicode_transfer __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py, line 115
def test_unicode_transfer(unicode_filename, verbose=False):
E fixture 'unicode_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_input_output.py:115
_____________________________________________________________________________ ERROR at setup of test_sort_keys ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_sort_keys.py, line 5
def test_sort_keys(input_filename, sorted_filename, verbose=False):
E fixture 'input_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_sort_keys.py:5
_________________________________________________________________________ ERROR at setup of test_multi_constructor __________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_multi_constructor.py, line 31
def test_multi_constructor(input_filename, code_filename, verbose=False):
E fixture 'input_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_multi_constructor.py:31
_____________________________________________________________________________ ERROR at setup of test_c_scanner ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_yaml_ext.py, line 155
def test_c_scanner(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_yaml_ext.py:155
______________________________________________________________________________ ERROR at setup of test_c_parser ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_yaml_ext.py, line 188
def test_c_parser(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_yaml_ext.py:188
_____________________________________________________________________________ ERROR at setup of test_c_emitter ______________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_yaml_ext.py, line 233
def test_c_emitter(data_filename, canonical_filename, verbose=False):
E fixture 'data_filename' not found
> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_yaml_ext.py:233
========================================================================================= FAILURES ==========================================================================================
________________________________________________________________________________ test_deprecate_yaml_module _________________________________________________________________________________
def test_deprecate_yaml_module():
import _yaml
assert _yaml.__package__ == ''
> assert isinstance(_yaml.get_version(), str)
E AssertionError: assert False
E + where False = isinstance((0, 2, 5), str)
E + where (0, 2, 5) = <cyfunction get_version at 0x7f874c837a00>()
E + where <cyfunction get_version at 0x7f874c837a00> = <module '_yaml' from '/home/tkloczko/rpmbuild/BUILDROOT/python-pyyaml-6.0.1-15.fc36.x86_64/usr/lib64/python3.9/site-packages/_yaml/__init__.py'>.get_version
tests/lib/test_yaml_ext.py:127: AssertionError
_____________________________________________________________________________________ test_scanner_ext ______________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_scanner() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
tests/lib/test_yaml_ext.py:262: TypeError
______________________________________________________________________________________ test_tokens_ext ______________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_tokens() missing 2 required positional arguments: 'data_filename' and 'tokens_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_____________________________________________________________________________________ test_composer_ext _____________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_composer() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
tests/lib/test_yaml_ext.py:262: TypeError
___________________________________________________________________________________ test_constructor_ext ____________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_constructor() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
tests/lib/test_yaml_ext.py:262: TypeError
______________________________________________________________________________________ test_parser_ext ______________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_parser() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_______________________________________________________________________________ test_parser_on_canonical_ext ________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_parser_on_canonical() missing 1 required positional argument: 'canonical_filename'
tests/lib/test_yaml_ext.py:262: TypeError
____________________________________________________________________________________ test_structure_ext _____________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_structure() missing 2 required positional arguments: 'data_filename' and 'structure_filename'
tests/lib/test_yaml_ext.py:262: TypeError
___________________________________________________________________________________ test_dumper_error_ext ___________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_dumper_error() missing 1 required positional argument: 'error_filename'
tests/lib/test_yaml_ext.py:262: TypeError
__________________________________________________________________________________ test_emitter_error_ext ___________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_emitter_error() missing 1 required positional argument: 'error_filename'
tests/lib/test_yaml_ext.py:262: TypeError
___________________________________________________________________________________ test_loader_error_ext ___________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_loader_error() missing 1 required positional argument: 'error_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_______________________________________________________________________________ test_loader_error_single_ext ________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_loader_error_single() missing 1 required positional argument: 'error_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_______________________________________________________________________________ test_loader_error_string_ext ________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_loader_error_string() missing 1 required positional argument: 'error_filename'
tests/lib/test_yaml_ext.py:262: TypeError
________________________________________________________________________________ test_implicit_resolver_ext _________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_implicit_resolver() missing 2 required positional arguments: 'data_filename' and 'detect_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_______________________________________________________________________________ test_path_resolver_dumper_ext _______________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_path_resolver_dumper() missing 2 required positional arguments: 'data_filename' and 'path_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_______________________________________________________________________________ test_path_resolver_loader_ext _______________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_path_resolver_loader() missing 2 required positional arguments: 'data_filename' and 'path_filename'
tests/lib/test_yaml_ext.py:262: TypeError
________________________________________________________________________________ test_constructor_types_ext _________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_constructor_types() missing 2 required positional arguments: 'data_filename' and 'code_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_____________________________________________________________________________ test_subclass_blacklist_types_ext _____________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_subclass_blacklist_types() missing 1 required positional argument: 'data_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_______________________________________________________________________________ test_emitter_on_canonical_ext _______________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_emitter_on_canonical() missing 1 required positional argument: 'canonical_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_________________________________________________________________________________ test_emitter_on_data_ext __________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_emitter_on_data() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
tests/lib/test_yaml_ext.py:262: TypeError
__________________________________________________________________________________ test_emitter_styles_ext __________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_emitter_styles() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
tests/lib/test_yaml_ext.py:262: TypeError
________________________________________________________________________________ test_representer_types_ext _________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_representer_types() missing 1 required positional argument: 'code_filename'
tests/lib/test_yaml_ext.py:262: TypeError
____________________________________________________________________________________ test_recursive_ext _____________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_recursive() missing 1 required positional argument: 'recursive_filename'
tests/lib/test_yaml_ext.py:262: TypeError
___________________________________________________________________________________ test_file_output_ext ____________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_file_output() missing 1 required positional argument: 'unicode_filename'
tests/lib/test_yaml_ext.py:262: TypeError
__________________________________________________________________________________ test_unicode_input_ext ___________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_unicode_input() missing 1 required positional argument: 'unicode_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_______________________________________________________________________________ test_unicode_input_errors_ext _______________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_unicode_input_errors() missing 1 required positional argument: 'unicode_filename'
tests/lib/test_yaml_ext.py:262: TypeError
__________________________________________________________________________________ test_unicode_output_ext __________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_unicode_output() missing 1 required positional argument: 'unicode_filename'
tests/lib/test_yaml_ext.py:262: TypeError
_________________________________________________________________________________ test_unicode_transfer_ext _________________________________________________________________________________
args = (), kwds = {}
def wrapper(*args, **kwds):
_set_up()
try:
> function(*args, **kwds)
E TypeError: test_unicode_transfer() missing 1 required positional argument: 'unicode_filename'
tests/lib/test_yaml_ext.py:262: TypeError
===================================================================================== warnings summary ======================================================================================
tests/lib/test_dump_load.py:12
/home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/tests/lib/test_dump_load.py:12: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
assert(False, "load() require Loader=...")
tests/lib/test_dump_load.py::test_load_no_loader
/usr/lib/python3.9/site-packages/_pytest/python.py:204: PytestReturnNotNoneWarning: Expected None, but tests/lib/test_dump_load.py::test_load_no_loader returned True, which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`?
warnings.warn(
tests/lib/test_yaml.py::test_load_no_loader
/usr/lib/python3.9/site-packages/_pytest/python.py:204: PytestReturnNotNoneWarning: Expected None, but tests/lib/test_yaml.py::test_load_no_loader returned True, which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`?
warnings.warn(
tests/lib/test_yaml_ext.py::test_deprecate_yaml_module
/home/tkloczko/rpmbuild/BUILDROOT/python-pyyaml-6.0.1-15.fc36.x86_64/usr/lib64/python3.9/site-packages/_yaml/__init__.py:18: DeprecationWarning: The _yaml extension module is now located at yaml._yaml and its location is subject to change. To use the LibYAML-based parser and emitter, import from `yaml`: `from yaml import CLoader as Loader, CDumper as Dumper`.
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
ERROR tests/lib/test_canonical.py::test_canonical_scanner
ERROR tests/lib/test_canonical.py::test_canonical_parser
ERROR tests/lib/test_canonical.py::test_canonical_error
ERROR tests/lib/test_constructor.py::test_constructor_types
ERROR tests/lib/test_constructor.py::test_subclass_blacklist_types
ERROR tests/lib/test_emitter.py::test_emitter_on_data
ERROR tests/lib/test_emitter.py::test_emitter_on_canonical
ERROR tests/lib/test_emitter.py::test_emitter_styles
ERROR tests/lib/test_emitter.py::test_emitter_events
ERROR tests/lib/test_errors.py::test_loader_error
ERROR tests/lib/test_errors.py::test_loader_error_string
ERROR tests/lib/test_errors.py::test_loader_error_single
ERROR tests/lib/test_errors.py::test_emitter_error
ERROR tests/lib/test_errors.py::test_dumper_error
ERROR tests/lib/test_input_output.py::test_unicode_input
ERROR tests/lib/test_input_output.py::test_unicode_input_errors
ERROR tests/lib/test_input_output.py::test_unicode_output
ERROR tests/lib/test_input_output.py::test_file_output
ERROR tests/lib/test_input_output.py::test_unicode_transfer
ERROR tests/lib/test_mark.py::test_marks
ERROR tests/lib/test_multi_constructor.py::test_multi_constructor
ERROR tests/lib/test_reader.py::test_stream_error
ERROR tests/lib/test_recursive.py::test_recursive
ERROR tests/lib/test_representer.py::test_representer_types
ERROR tests/lib/test_resolver.py::test_implicit_resolver
ERROR tests/lib/test_resolver.py::test_path_resolver_loader
ERROR tests/lib/test_resolver.py::test_path_resolver_dumper
ERROR tests/lib/test_schema.py::test_implicit_resolver
ERROR tests/lib/test_sort_keys.py::test_sort_keys
ERROR tests/lib/test_structure.py::test_structure
ERROR tests/lib/test_structure.py::test_parser
ERROR tests/lib/test_structure.py::test_parser_on_canonical
ERROR tests/lib/test_structure.py::test_composer
ERROR tests/lib/test_structure.py::test_constructor
ERROR tests/lib/test_tokens.py::test_tokens
ERROR tests/lib/test_tokens.py::test_scanner
ERROR tests/lib/test_yaml.py::test_marks
ERROR tests/lib/test_yaml.py::test_stream_error
ERROR tests/lib/test_yaml.py::test_canonical_scanner
ERROR tests/lib/test_yaml.py::test_canonical_parser
ERROR tests/lib/test_yaml.py::test_canonical_error
ERROR tests/lib/test_yaml.py::test_tokens
ERROR tests/lib/test_yaml.py::test_scanner
ERROR tests/lib/test_yaml.py::test_structure
ERROR tests/lib/test_yaml.py::test_parser
ERROR tests/lib/test_yaml.py::test_parser_on_canonical
ERROR tests/lib/test_yaml.py::test_composer
ERROR tests/lib/test_yaml.py::test_loader_error
ERROR tests/lib/test_yaml.py::test_loader_error_string
ERROR tests/lib/test_yaml.py::test_loader_error_single
ERROR tests/lib/test_yaml.py::test_emitter_error
ERROR tests/lib/test_yaml.py::test_dumper_error
ERROR tests/lib/test_yaml.py::test_implicit_resolver
ERROR tests/lib/test_yaml.py::test_path_resolver_loader
ERROR tests/lib/test_yaml.py::test_path_resolver_dumper
ERROR tests/lib/test_yaml.py::test_constructor_types
ERROR tests/lib/test_yaml.py::test_subclass_blacklist_types
ERROR tests/lib/test_yaml.py::test_emitter_on_data
ERROR tests/lib/test_yaml.py::test_emitter_on_canonical
ERROR tests/lib/test_yaml.py::test_emitter_styles
ERROR tests/lib/test_yaml.py::test_emitter_events
ERROR tests/lib/test_yaml.py::test_representer_types
ERROR tests/lib/test_yaml.py::test_recursive
ERROR tests/lib/test_yaml.py::test_unicode_input
ERROR tests/lib/test_yaml.py::test_unicode_input_errors
ERROR tests/lib/test_yaml.py::test_unicode_output
ERROR tests/lib/test_yaml.py::test_file_output
ERROR tests/lib/test_yaml.py::test_unicode_transfer
ERROR tests/lib/test_yaml.py::test_sort_keys
ERROR tests/lib/test_yaml.py::test_multi_constructor
ERROR tests/lib/test_yaml_ext.py::test_c_scanner
ERROR tests/lib/test_yaml_ext.py::test_c_parser
ERROR tests/lib/test_yaml_ext.py::test_c_emitter
FAILED tests/lib/test_yaml_ext.py::test_deprecate_yaml_module - AssertionError: assert False
FAILED tests/lib/test_yaml_ext.py::test_scanner_ext - TypeError: test_scanner() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
FAILED tests/lib/test_yaml_ext.py::test_tokens_ext - TypeError: test_tokens() missing 2 required positional arguments: 'data_filename' and 'tokens_filename'
FAILED tests/lib/test_yaml_ext.py::test_composer_ext - TypeError: test_composer() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
FAILED tests/lib/test_yaml_ext.py::test_constructor_ext - TypeError: test_constructor() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
FAILED tests/lib/test_yaml_ext.py::test_parser_ext - TypeError: test_parser() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
FAILED tests/lib/test_yaml_ext.py::test_parser_on_canonical_ext - TypeError: test_parser_on_canonical() missing 1 required positional argument: 'canonical_filename'
FAILED tests/lib/test_yaml_ext.py::test_structure_ext - TypeError: test_structure() missing 2 required positional arguments: 'data_filename' and 'structure_filename'
FAILED tests/lib/test_yaml_ext.py::test_dumper_error_ext - TypeError: test_dumper_error() missing 1 required positional argument: 'error_filename'
FAILED tests/lib/test_yaml_ext.py::test_emitter_error_ext - TypeError: test_emitter_error() missing 1 required positional argument: 'error_filename'
FAILED tests/lib/test_yaml_ext.py::test_loader_error_ext - TypeError: test_loader_error() missing 1 required positional argument: 'error_filename'
FAILED tests/lib/test_yaml_ext.py::test_loader_error_single_ext - TypeError: test_loader_error_single() missing 1 required positional argument: 'error_filename'
FAILED tests/lib/test_yaml_ext.py::test_loader_error_string_ext - TypeError: test_loader_error_string() missing 1 required positional argument: 'error_filename'
FAILED tests/lib/test_yaml_ext.py::test_implicit_resolver_ext - TypeError: test_implicit_resolver() missing 2 required positional arguments: 'data_filename' and 'detect_filename'
FAILED tests/lib/test_yaml_ext.py::test_path_resolver_dumper_ext - TypeError: test_path_resolver_dumper() missing 2 required positional arguments: 'data_filename' and 'path_filename'
FAILED tests/lib/test_yaml_ext.py::test_path_resolver_loader_ext - TypeError: test_path_resolver_loader() missing 2 required positional arguments: 'data_filename' and 'path_filename'
FAILED tests/lib/test_yaml_ext.py::test_constructor_types_ext - TypeError: test_constructor_types() missing 2 required positional arguments: 'data_filename' and 'code_filename'
FAILED tests/lib/test_yaml_ext.py::test_subclass_blacklist_types_ext - TypeError: test_subclass_blacklist_types() missing 1 required positional argument: 'data_filename'
FAILED tests/lib/test_yaml_ext.py::test_emitter_on_canonical_ext - TypeError: test_emitter_on_canonical() missing 1 required positional argument: 'canonical_filename'
FAILED tests/lib/test_yaml_ext.py::test_emitter_on_data_ext - TypeError: test_emitter_on_data() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
FAILED tests/lib/test_yaml_ext.py::test_emitter_styles_ext - TypeError: test_emitter_styles() missing 2 required positional arguments: 'data_filename' and 'canonical_filename'
FAILED tests/lib/test_yaml_ext.py::test_representer_types_ext - TypeError: test_representer_types() missing 1 required positional argument: 'code_filename'
FAILED tests/lib/test_yaml_ext.py::test_recursive_ext - TypeError: test_recursive() missing 1 required positional argument: 'recursive_filename'
FAILED tests/lib/test_yaml_ext.py::test_file_output_ext - TypeError: test_file_output() missing 1 required positional argument: 'unicode_filename'
FAILED tests/lib/test_yaml_ext.py::test_unicode_input_ext - TypeError: test_unicode_input() missing 1 required positional argument: 'unicode_filename'
FAILED tests/lib/test_yaml_ext.py::test_unicode_input_errors_ext - TypeError: test_unicode_input_errors() missing 1 required positional argument: 'unicode_filename'
FAILED tests/lib/test_yaml_ext.py::test_unicode_output_ext - TypeError: test_unicode_output() missing 1 required positional argument: 'unicode_filename'
FAILED tests/lib/test_yaml_ext.py::test_unicode_transfer_ext - TypeError: test_unicode_transfer() missing 1 required positional argument: 'unicode_filename'
==================================================================== 28 failed, 8 passed, 4 warnings, 73 errors in 0.72s ==================================================================== Part of those errors are caused by something still missing in build env for that module (can someone hel what exactly it is? 🤔) but some are not. |
It is yet another minor issue. + /usr/bin/python3 -sBm build -w --no-isolation
* Getting build dependencies for wheel...
running egg_info
creating lib/PyYAML.egg-info
writing lib/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib/PyYAML.egg-info/top_level.txt
writing manifest file 'lib/PyYAML.egg-info/SOURCES.txt'
cythoning yaml/_yaml.pyx to yaml/_yaml.c
/usr/lib64/python3.9/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases!
File: /home/tkloczko/rpmbuild/BUILD/pyyaml-6.0.1/yaml/_yaml.pxd
tree = Parsing.p_module(s, pxd, full_module_name) |
@kloczek This pull request was closed several months ago. Please report your issues elsewhere. |
Can you point where I should report that? 🤔 |
FYI: This was effective merged in #808. |
This is a de minimis fix for building with Cython 3. Recent Cython<3 releases provided
Cython.Distutils.build_ext
as an alias toCython.Distutils.old_build_ext.old_build_ext
; Cython 3 drops this alias and instead uses a wholly newCython.Distutils.build_ext
that does not provide thecython_sources
function used insetup.py
.Explicitly importing
old_build_ext
preserves the existing behavior for recent Cython<3 and uses the correct behavior for Cython 3. Should the import fail (e.g., because the version of Cython available predates the availability ofold_build_ext
), the import falls back to justCython.Distutils.build_ext
.This PR supersedes #729 and should be preferred for reasons discussed in my comments there.