Skip to content
Myr

Don't test the NotImplemented, just make sure it's False

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Gert Van Gool · committed by Gert Van Gool · parent 147a305 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:test_requests.py+1 added-1 removed
1222 unmodified lines
1223 assert cid == othercid1224 del othercid['spam']1225 assert cid != othercid1226 assert cid == {'spam': 'blueval', 'eggs': 'redval'}1227 assert cid.__eq__(object()) == NotImplemented1227 assert cid != object()12281229 def test_setdefault(self):1230 cid = CaseInsensitiveDict({'Spam': 'blueval'})1231 assert cid.setdefault('spam', 'notblueval') == 'blueval'
432 unmodified lines