summaryrefslogtreecommitdiff
path: root/tests/test_stanza_element.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2020-12-06 16:34:52 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2020-12-06 17:00:47 +0100
commitcd4c9f82fc8d17726baa4b4a69c54151fb181f40 (patch)
treed47b5d13b0d79f6526661bf23caebbef9c57d136 /tests/test_stanza_element.py
parent05749c49690c00f2b1794212b2fb9281b6956a89 (diff)
downloadslixmpp-cd4c9f82fc8d17726baa4b4a69c54151fb181f40.tar.gz
slixmpp-cd4c9f82fc8d17726baa4b4a69c54151fb181f40.tar.bz2
slixmpp-cd4c9f82fc8d17726baa4b4a69c54151fb181f40.tar.xz
slixmpp-cd4c9f82fc8d17726baa4b4a69c54151fb181f40.zip
Remove OrderedDict usage
We now support only Python 3.7+, this means we can rely on dict being ordered by order of insertion, and thus no need to use OrderedDict from collections.
Diffstat (limited to 'tests/test_stanza_element.py')
-rw-r--r--tests/test_stanza_element.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_stanza_element.py b/tests/test_stanza_element.py
index 2090f05a..8ebc9b23 100644
--- a/tests/test_stanza_element.py
+++ b/tests/test_stanza_element.py
@@ -1,7 +1,6 @@
import unittest
from slixmpp.test import SlixTest
from slixmpp.xmlstream.stanzabase import ElementBase, register_stanza_plugin, ET
-from collections import OrderedDict
class TestElementBase(SlixTest):
@@ -1221,7 +1220,7 @@ class TestElementBase(SlixTest):
sub_interfaces = interfaces
lang_interfaces = interfaces
- data = OrderedDict()
+ data = {}
data['en'] = 'hi'
data['fr'] = 'bonjour'
data['no'] = 'hej'