diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2017-08-20 11:47:55 +0200 |
---|---|---|
committer | Lucas Hoffmann <l-m-h@web.de> | 2017-08-20 12:09:58 +0200 |
commit | 20dab95640592bd4f539a8a781f0c80c21cc5708 (patch) | |
tree | f7786072840fb188b25c1d913a1d17676dbb4d03 /tests/widgets | |
parent | a91ee3f8592f7abcb405dc30ef8e8279dc9a09fd (diff) |
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__
Diffstat (limited to 'tests/widgets')
-rw-r--r-- | tests/widgets/globals_test.py | 1 |
1 files changed, 0 insertions, 1 deletions
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', |