Closed Bug 673607 Opened 15 years ago Closed 15 years ago

stop comparing apples and oranges

Categories

(Cloud Services :: Server: Core, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tarek, Assigned: tarek)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

bin/nosetests -s --with-xunit syncreg/tests ......../home/tarek/dev/hg.mozilla.org/server-reg/deps/server-core/services/util.py:338: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal return user_name.lower().strip() != password.lower().strip() .......... ---------------------------------------------------------------------- Ran 18 tests in 12.392s OK This happens because the password is converted to a str, so we need to convert user name for the comparison
This is a real bug btw, not just a warning -- see the test I added
Assignee: nobody → tarek
Status: NEW → ASSIGNED
Attachment #547840 - Flags: review?(rmiller)
Comment on attachment 547840 [details] [diff] [review] Fixes the encoding issue Review of attachment 547840 [details] [diff] [review]: -----------------------------------------------------------------
Attachment #547840 - Flags: review?(rmiller) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: