Permalink
Browse files

Py3.3 fix for cElementTree compatibility test

  • Loading branch information...
1 parent afd3a6f commit 37ac199e1fa34d7f9ec819cba2c048c1819696c1 @scoder scoder committed Mar 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lxml/tests/test_io.py
@@ -244,7 +244,7 @@ class TestFile:
def read(*args):
return 1
f = TestFile()
- self.assertRaises(TypeError, self.etree.parse, f)
+ self.assertRaises((TypeError, self.etree.ParseError), self.etree.parse, f)
class ETreeIOTestCase(_IOTestCaseBase):

0 comments on commit 37ac199

Please sign in to comment.