Hello, first post here!
I'm trying to run the tests, but I'm getting the following error.
======================================================================
FAIL: test_jsonify (TestUtils.TestUtils)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jacob/ansible-dev/ansible/test/units/TestUtils.py", line 186,
in test_jsonify
self.assertEqual(ansible.utils.jsonify(dict(foo='bar', baz=['qux']),
format=True), expected)
AssertionError: u'{\n "baz": [\n "qux"\n ], \n "foo":
"bar"\n}' != u'{\n "baz": [\n "qux"\n ],\n "foo": "bar"\n}'
{
"baz": [
"qux"
- ],
? -
+ ],
"foo": "bar"
}
"""Fail immediately, with the given message."""
>> raise self.failureException(u'u\'{\\n "baz": [\\n "qux"\\n
], \\n "foo": "bar"\\n}\' != u\'{\\n "baz": [\\n "qux"\\n
],\\n "foo": "bar"\\n}\'\n {\n "baz": [\n "qux"\n-
], \n? -\n+ ],\n "foo": "bar"\n }')
----------------------------------------------------------------------
Ran 230 tests in 8.206s
FAILED (failures=1)
make: *** [tests] Error 1
(ansible-dev)➜ ansible git:(devel) python --version
Python 2.7.6
The issue looks like the expected output doesn't have a space right before
the newline before "foo", but the test result does have a space there. Is
this a bug?
My interpreter is Python 2.7.6 (also provided in code snippet), in a
virtual environment, and the environment setup in hacking has been sourced,
Also, before running the tests, here is the output of pip at the end:
Successfully installed paramiko PyYAML jinja2 httplib2 passlib nose mock
pycrypto ecdsa markupsafe
I believe that's all the packages I should need.
In case it matters, I'm on Mint 17.
Thank you for any help.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/9ce0868d-52a9-4798-8ea1-65b9fc0cb511%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.