Skip to content
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

Test failure in test_flat_body #44

Open
opoplawski opened this issue Mar 13, 2019 · 1 comment
Open

Test failure in test_flat_body #44

opoplawski opened this issue Mar 13, 2019 · 1 comment

Comments

@opoplawski
Copy link

+ nosetests-3.7
BUILDSTDERR: ..............................................................................................................................................................................F...................................................
BUILDSTDERR: ======================================================================
BUILDSTDERR: FAIL: test_flat_body (unittests.serialization_test.base_test.TestSerialization)
BUILDSTDERR: ----------------------------------------------------------------------
BUILDSTDERR: Traceback (most recent call last):
BUILDSTDERR:   File "/builddir/build/BUILD/nineml-python-1.0.1/test/unittests/serialization_test/base_test.py", line 355, in test_flat_body
BUILDSTDERR:     self.assertEqual(h_str, h_strs[format])
BUILDSTDERR: AssertionError: 'H:\n  G: 1.0\n' != 'H: {G: 1.0}\n'
+ H: {G: 1.0}
BUILDSTDERR: - H:
BUILDSTDERR: -   G: 1.0
BUILDSTDERR: ----------------------------------------------------------------------

This is new in Fedora Rawhide. Not sure what changed to trigger it.

@tclose
Copy link
Contributor

tclose commented Mar 13, 2019

Looks like a change in the heuristics used to decide whether print YAML in condensed (JSON-like) format or not. The test is probably not designed particularly well as it is comparing the string generated by YAML serialisation directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants