tests.test_request.TestRequest_functional.test_headers2() fails with Python 3.3 #75

Closed
Arfrever opened this Issue Sep 23, 2012 · 1 comment

Projects

None yet

2 participants

@Arfrever

Python 3.3 has hash randomization enabled by default, so sometimes test suite fails. You might need to run test suite multiple times to reproduce this issue.

$ nosetests-3.3
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F........................................................................................................................................................................................................
======================================================================
FAIL: test_headers2 (tests.test_request.TestRequest_functional)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/webob/tests/test_request.py", line 2665, in test_headers2
    self.assertEqual(list(r.environ.keys()), ['a',  'HTTP_SERVER'])
AssertionError: Lists differ: ['HTTP_SERVER', 'a'] != ['a', 'HTTP_SERVER']

First differing element 0:
HTTP_SERVER
a

- ['HTTP_SERVER', 'a']
?               -----

+ ['a', 'HTTP_SERVER']
?  +++++

    """Fail immediately, with the given message."""
>>  raise self.failureException("Lists differ: ['HTTP_SERVER', 'a'] != ['a', 'HTTP_SERVER']\n\nFirst differing element 0:\nHTTP_SERVER\na\n\n- ['HTTP_SERVER', 'a']\n?               -----\n\n+ ['a', 'HTTP_SERVER']\n?  +++++\n")


----------------------------------------------------------------------
Ran 998 tests in 4.799s

FAILED (failures=1)
@mcdonc
Pylons Project member

Fixed by merging the pull request referenced above.

@mcdonc mcdonc closed this Oct 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment