diff options
-rw-r--r-- | alot/widgets/globals.py | 2 | ||||
-rw-r--r-- | tests/widgets/globals_test.py | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py index f602add0..6ce29827 100644 --- a/alot/widgets/globals.py +++ b/alot/widgets/globals.py @@ -290,7 +290,7 @@ class TagWidget(urwid.AttrMap): self.translated = representation['translated'] self.hidden = self.translated == '' self.txt = urwid.Text(self.translated, wrap='clip') - self.__hash = hash('{}_{}'.format(self.translated, self.txt)) + self.__hash = hash((self.translated, self.txt)) normal_att = representation['normal'] focus_att = representation['focussed'] self.attmaps = {'normal': normal_att, 'focus': focus_att} diff --git a/tests/widgets/globals_test.py b/tests/widgets/globals_test.py index 91092264..bcbf51e1 100644 --- a/tests/widgets/globals_test.py +++ b/tests/widgets/globals_test.py @@ -40,7 +40,6 @@ class TestTagWidget(unittest.TestCase): sorted(globals_.TagWidget(x) for x in expected)] self.assertListEqual(actual, expected) - @unittest.expectedFailure def test_hash_for_unicode_representation(self): with mock.patch( 'alot.widgets.globals.settings.get_tagstring_representation', |