Casted `dict_keys` to `list` to get the first item.
Resolves
@@ -23,7 +23,7 @@ def test_selector_lt():
parser = CSSParser(CSSBuilder(mediumSet=['pdf']))
- general_selector = parser.parse(general_css)[0].keys()[0]
- specific_selector = parser.parse(specific_css)[0].keys()[0]
+ general_selector = list(parser.parse(general_css)[0].keys())[0]
+ specific_selector = list(parser.parse(specific_css)[0].keys())[0]
tools.assert_false(specific_selector < general_selector)
