Hi, thank you for the quick reply. It seems that commit has broken the test for me. In that commit, the space is removed that allows the test to pass if it's present. To test this, I did the following. Performed the test like I did originally, it failed the jsonify test. Performed the test after checking out the commit right before the one that you linked to, it passed the test and all others.
I repeated those in a fresh ubuntu/trusty64 Vagrant VM, with only the bare requirements installed (pip, python-dev, git), then set up the environment again. There I had the same results as I got above: It fails with the latest, it passes before the commit. What should I do to get the test to pass? Thank you, -Jacob Case On Wednesday, February 18, 2015 at 8:15:00 AM UTC-6, Matt Martz wrote: > > I believe this was already fixed in > https://github.com/ansible/ansible/commit/bc5d0a8cd499ffb57598b02e38c31c499236d691 > > On Tuesday, February 17, 2015, Jacob Case <[email protected] > <javascript:>> wrote: > >> 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 >> >> <https://groups.google.com/d/msgid/ansible-project/9ce0868d-52a9-4798-8ea1-65b9fc0cb511%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Matt Martz > @sivel > sivel.net > > -- 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/f0efbbcb-a0c4-429a-bf1f-ca3aff80bdfa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
