From 20dab95640592bd4f539a8a781f0c80c21cc5708 Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Sun, 20 Aug 2017 11:47:55 +0200 Subject: Use a tuple to build a hash value The old implementation would raise an error when the translated tag string was a unicode string (might be defined as an abbreviation in the users config). The official docs suggest this kind of implementation: https://docs.python.org/3/reference/datamodel.html#object.__hash__ --- tests/widgets/globals_test.py | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/widgets') 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', -- cgit v1.2.3