Merge lp:~mabac/launchpad/login-raises-non-string into lp:launchpad
Proposed by
Mattias Backman
Status: | Merged |
---|---|
Approved by: | j.c.sackett |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14753 |
Proposed branch: | lp:~mabac/launchpad/login-raises-non-string |
Merge into: | lp:launchpad |
Diff against target: |
11 lines (+2/-0) 1 file modified
lib/lp/testing/_login.py (+2/-0) |
To merge this branch: | bzr merge lp:~mabac/launchpad/login-raises-non-string |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Richard Harding (community) | code* | Approve | |
Review via email: mp+91265@code.launchpad.net |
Commit message
[r=jcsackett,
Description of the change
Hi,
This branch adds a check to login() in lib/lp/
Thanks,
Mattias
To post a comment you must log in.
In checking the method the only possible options are either an email address or the lp.testing. ANONYMOUS which is a string as well.
I asked in IRC the driving idea behind the change and your explanation of clearing up a potential confusing error message seems potentially helpful in debugging the failing test driven from passing a non-email string to the method.
As noted in irc by salgado, basestring would be a much better comparison since often this will be a unicode string and not a strict str. Please update that.