Opened 2 years ago

Last modified 2 years ago

#5760 defect new

test_webclient flaky with randomized hashes

Reported by: antoine Owned by:
Priority: normal Milestone:
Component: web Keywords:
Cc: jknight Branch:
Author: Launchpad Bug:

Description

twisted.web.test.test_webclient fails sporadically with python -R:

[FAIL]
Traceback (most recent call last):
  File "/home/antoine/twisted/twisted/web/test/test_webclient.py", line 2585, in test_existingHeaders
    ('Accept-Encoding', ['fizz', 'decoder1,decoder2'])])
  File "/home/antoine/twisted/twisted/trial/unittest.py", line 270, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = [('Host', ['example.com']),
 ('Accept-Encoding', ['fizz', 'decoder1,decoder2']),
 ('Foo', ['bar'])]
b = [('Host', ['example.com']),
 ('Foo', ['bar']),
 ('Accept-Encoding', ['fizz', 'decoder1,decoder2'])]


twisted.web.test.test_webclient.ContentDecoderAgentTests.test_existingHeaders
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/antoine/twisted/twisted/trial/unittest.py", line 270, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = "'baz=quux; foo=bar'"
b = "'foo=bar; baz=quux'"


twisted.web.test.test_webclient.CookieTestCase.testRawSomeCookies
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/antoine/twisted/twisted/web/test/test_webclient.py", line 286, in test_earlyHeaders
    "GET /bar HTTP/1.0\r\n"
  File "/home/antoine/twisted/twisted/trial/unittest.py", line 270, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = 'GET /bar HTTP/1.0\r\nHost: example.net\r\nUser-Agent: foobar\r\nContent-Length: 9\r\nconnection: close\r\nUseful: value\r\nCookie: blah blah; baz=quux\r\n\r\nsome data'
b = 'GET /bar HTTP/1.0\r\nHost: example.net\r\nUser-Agent: foobar\r\nContent-Length: 9\r\nUseful: value\r\nconnection: close\r\nCookie: blah blah; baz=quux\r\n\r\nsome data'

Change History (1)

comment:1 Changed 2 years ago by DefaultCC Plugin

  • Cc jknight added
Note: See TracTickets for help on using tickets.