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

Several tests failing on openSUSE #22

Open
jayvdb opened this issue May 12, 2019 · 0 comments
Open

Several tests failing on openSUSE #22

jayvdb opened this issue May 12, 2019 · 0 comments

Comments

@jayvdb
Copy link

jayvdb commented May 12, 2019

I am trying to package this library to replace the aging https://build.opensuse.org/package/show/devel:languages:python:misc/python-yajl which doesnt build against the system library , which is not desirable based on good packaging guidelines.

fwiw, the yajl project is at https://build.opensuse.org/package/show/devel:libraries:c_c++/libyajl

I have the package almost working on openSUSE at https://build.opensuse.org/package/show/home:jayvdb:py-new/python-yajl-py, using the github archive tag 2.1.2, except errors below.

I suspect the version mismatch test failing is something that I just need to bypass, but the others look quite concerning.

Also it looks like the versioning happening here is going to be a problem for distro packaging, as this library doesnt appear to increment any version number when changes are made.

[   19s] ======================================================================
[   19s] FAIL: test_check_yajl_version_warnsOnlyWhenMismatchedVersions (tests.test_yajl.YajlCommonTests)
[   19s] ----------------------------------------------------------------------
[   19s] Traceback (most recent call last):
[   19s]   File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 266, in test_check_yajl_version_warnsOnlyWhenMismatchedVersions
[   19s]     self.assertFalse(yajl.check_yajl_version())
[   19s] AssertionError: True is not false
[   19s] 
[   19s] ======================================================================
[   19s] FAIL: test_YajlGen_beautifyOutput (tests.test_yajl.YajlGenTests)
[   19s] ----------------------------------------------------------------------
[   19s] Traceback (most recent call last):
[   19s]   File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 207, in test_YajlGen_beautifyOutput
[   19s]     b''.join(results))
[   19s] AssertionError: b'{\n    "a": [\n        null,\n        tru[62 chars]n}\n' != b''
[   19s] 
[   19s] ======================================================================
[   19s] FAIL: test_YajlGen_indentOutput (tests.test_yajl.YajlGenTests)
[   19s] ----------------------------------------------------------------------
[   19s] Traceback (most recent call last):
[   19s]   File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 223, in test_YajlGen_indentOutput
[   19s]     b''.join(results))
[   19s] AssertionError: b'{\n\t"a": [\n\t\tnull,\n\t\ttrue,\n\t\t1,[34 chars]n}\n' != b''
[   19s] 
[   19s] ======================================================================
[   19s] FAIL: test_YajlGen_minimizeOutput (tests.test_yajl.YajlGenTests)
[   19s] ----------------------------------------------------------------------
[   19s] Traceback (most recent call last):
[   19s]   File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 191, in test_YajlGen_minimizeOutput
[   19s]     b''.join(results))
[   19s] AssertionError: b'{"a":[null,true,1,-6.5,3,"b"]}' != b''
[   19s] 
[   19s] ======================================================================
[   19s] FAIL: test_YajlGen_streamedOutput (tests.test_yajl.YajlGenTests)
[   19s] ----------------------------------------------------------------------
[   19s] Traceback (most recent call last):
[   19s]   File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 184, in test_YajlGen_streamedOutput
[   19s]     self.assertEqual(b',"b"]}', results[1])
[   19s] AssertionError: b',"b"]}' != b''
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

1 participant