simplified condition in test and added changelog entry

This commit is contained in:
Adam Jakab 2020-03-14 21:30:22 +01:00
parent 832c7326af
commit fbd1266bc5
2 changed files with 4 additions and 1 deletions

View file

@ -166,6 +166,9 @@ Fixes:
* Added a warning when configuration files defined in the `include` directive
of the configuration file fail to be imported.
:bug:`3498`
* Added the normalize method to the dbcore.types.INTEGER class which now
properly returns integer values.
:bug:`762` and :bug:`3507`
For plugin developers:

View file

@ -93,7 +93,7 @@ class PluralityTest(_common.TestCase):
for i in range(5)]
likelies, _ = match.current_metadata(items)
for f in fields:
if type(items[0]._fields[f]) in (Integer, PaddedInt):
if isinstance(likelies[f], int):
self.assertEqual(likelies[f], 0)
else:
self.assertEqual(likelies[f], '%s_1' % f)