Skip to content

Commit

Permalink
Fix Python 2.6 compatibility in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Bessi committed Sep 30, 2014
1 parent bdc1f9e commit f56fa3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyhiccup/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import sys
import re
try:
import unittest2 as unittest
Expand Down Expand Up @@ -106,8 +107,7 @@ def test_xhtml_transitional_doc_type(self):

def test_wrong_type(self):
data = []
with self.assertRaises(ValueError):
html(data, etype='kaboom')
self.assertRaises(ValueError, html, data, 'kaboom')


class XMLTest(CommonTest):
Expand Down

0 comments on commit f56fa3c

Please sign in to comment.