Merge ~jugmac00/launchpad:fix-pymemcache-regression-bytes-vs-str into launchpad:master
Proposed by
Jürgen Gmach
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jürgen Gmach | ||||
Approved revision: | 2fd70b8d4840179b27e0ee973a9c27a4855c40ca | ||||
Merge reported by: | Otto Co-Pilot | ||||
Merged at revision: | not available | ||||
Proposed branch: | ~jugmac00/launchpad:fix-pymemcache-regression-bytes-vs-str | ||||
Merge into: | launchpad:master | ||||
Diff against target: |
291 lines (+88/-42) 7 files modified
lib/lp/code/model/branch.py (+7/-11) lib/lp/code/model/gitref.py (+5/-12) lib/lp/services/memcache/client.py (+44/-2) lib/lp/services/memcache/testing.py (+2/-1) lib/lp/services/memcache/tests/test_memcache_client.py (+20/-0) lib/lp/services/memcache/timeline.py (+4/-4) lib/lp/snappy/model/snapstoreclient.py (+6/-12) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+411913@code.launchpad.net |
Commit message
Fix pymemcache regression in SnapStoreClient
To post a comment you must log in.
For the reviewer: l([], hosting_ fixture. getInventory. calls), which I think is ok, as getInventory is the method were the expected exception is raised ._cache, but then again, we test the fixture, not the real code.
- I had to remove one assertion: self.assertEqua
- I had to implement the two new methods also in MemcacheFixture - this is a bit dangerous, as duplicated code could be changed in one place and not in the other, and we basically test MemcacheFixture rather than the real code.
- I have not created a dedicated test to test the behavior when the Client accesses bytes instead of the expected str - I could inject bytes in MemcacheFixture