# test\_jsonify is failing from an extra space?

**URL:** <https://forum.ansible.com/t/test-jsonify-is-failing-from-an-extra-space/17543>\
**Category:** Ansible Project\
**Created:** [February 18, 2015, 4:43am UTC](https://forum.ansible.com/t/test-jsonify-is-failing-from-an-extra-space/17543 "2015-02-18T04:43:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacob\_Case](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jacob\_Case](https://forum.ansible.com/u/Jacob_Case)\
**Post date:** [February 18, 2015, 4:43am UTC](https://forum.ansible.com/t/test-jsonify-is-failing-from-an-extra-space/17543/1 "2015-02-18T04:43:54Z")

</div>

Hello, first post here!

I’m trying to run the tests, but I’m getting the following error.

`

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [February 18, 2015, 2:14pm UTC](https://forum.ansible.com/t/test-jsonify-is-failing-from-an-extra-space/17543/2 "2015-02-18T14:14:57Z")

</div>

I believe this was already fixed in [https://github.com/ansible/ansible/commit/bc5d0a8cd499ffb57598b02e38c31c499236d691](https://github.com/ansible/ansible/commit/bc5d0a8cd499ffb57598b02e38c31c499236d691)

---

<div class="post-metadata">

**Author:** ![Jacob\_Case](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jacob\_Case](https://forum.ansible.com/u/Jacob_Case)\
**Post date:** [February 18, 2015, 4:30pm UTC](https://forum.ansible.com/t/test-jsonify-is-failing-from-an-extra-space/17543/3 "2015-02-18T16:30:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 18, 2015, 5:33pm UTC](https://forum.ansible.com/t/test-jsonify-is-failing-from-an-extra-space/17543/4 "2015-02-18T17:33:42Z")

</div>

Our internal jenkins seems to disagree with everyone, I've submitted  
another PR that should fix this fot all cases

---

<div class="post-metadata">

**Author:** ![Dan5](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@Dan5](https://forum.ansible.com/u/Dan5)\
**Post date:** [March 19, 2015, 1:54pm UTC](https://forum.ansible.com/t/test-jsonify-is-failing-from-an-extra-space/17543/5 "2015-03-19T13:54:20Z")

</div>

I can’t get test\_jsonify to pass with a pristine 1.8.4 release. It would be nice to fix the 1.8.4 git release so that the tests actually pass.
