Skip to content

Commit

Permalink
remove compat definition of assertFalse()
Browse files Browse the repository at this point in the history
This was needed for Python 2.3, which is no longer supported.
  • Loading branch information
jwilk committed Mar 17, 2017
1 parent 7281270 commit 4d11fb6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lxml/tests/common_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ def _rootstring(self, tree):
return etree.tostring(tree.getroot()).replace(
_bytes(' '), _bytes('')).replace(_bytes('\n'), _bytes(''))

# assertFalse doesn't exist in Python 2.3
try:
unittest.TestCase.assertFalse
except AttributeError:
assertFalse = unittest.TestCase.failIf


class SillyFileLike:
def __init__(self, xml_data=_bytes('<foo><bar/></foo>')):
Expand Down

0 comments on commit 4d11fb6

Please sign in to comment.