Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2525 (closed defect: fixed)

Opened 9 years ago

Last modified 8 years ago

test_caching fails in TG 2.1

Reported by: chrisz Owned by:
Priority: normal Milestone: 2.2
Component: TurboGears Version: 2.1
Severity: normal Keywords:


When running the TG 2.1 test suite I get

FAIL: test_304 (tests.test_caching.TestEtagCaching)
Traceback (most recent call last):
  File "/home/cito/Projekte/tg21/src/tg-dev/tests/test_caching.py", line 163, in test_304
    assert "304" in resp.status, resp
AssertionError: Response: 200 OK
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Etag: "foo"
Pragma: no-cache
    resp = self.app.get('/etagged/', params={'etag':'foo'}, headers={'if-none-match': 'foo'})
>>  assert "304" in resp.status, resp

Change History

comment:1 Changed 8 years ago by pedersen

  • Status changed from new to closed
  • Resolution set to fixed

This problem was fixed in this commit:  https://sourceforge.net/p/turbogears2/tg2/ci/575bc9f9d500717199b03a1115d2ce7a029d64e3/

Pylons 1.0 changed the header format for the etags. The test case has been updated to reflect the way things are supposed to work.

Note: See TracTickets for help on using tickets.