Closed Bug 1435199 Opened 8 years ago Closed 8 years ago

[compare-locales] ParserTestMixin should use instanceof instead of type equality for non-entity entries

Categories

(Localization Infrastructure and Tools :: compare-locales, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: Pike)

Details

Attachments

(1 file)

Right now, ParserTestMixin._test tests type() against strings, which locks in the rest of the code base. Let's be nice and use instanceof instead.
Comment on attachment 8947750 [details] bug 1435199, use assertIsInstance instead of type name comparison, https://reviewboard.mozilla.org/r/217460/#review223226 It looks much better this way, thanks!
Attachment #8947750 - Flags: review?(stas) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: