Skip to content

Commit

Permalink
Apply ruff/pyupgrade rule UP036
Browse files Browse the repository at this point in the history
UP036 Version block is outdated for minimum Python version
  • Loading branch information
DimitriPapadopoulos committed Oct 5, 2024
1 parent 3df6d23 commit 16adb5a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test_dicttoxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ def test_non_string_attr(self):
self.assertEqual('<a attr="1"></a>', _strip(unparse(obj)))

def test_short_empty_elements(self):
if sys.version_info[0] < 3:
return
obj = {'a': None}
self.assertEqual('<a/>', _strip(unparse(obj, short_empty_elements=True)))

Expand Down

0 comments on commit 16adb5a

Please sign in to comment.