747a33b
diff -Nur feedparser-5.1.3-orig/feedparser/feedparsertest.py feedparser-5.1.3/feedparser/feedparsertest.py
747a33b
--- feedparser-5.1.3-orig/feedparser/feedparsertest.py	2012-12-09 17:18:06.000000000 +0100
747a33b
+++ feedparser-5.1.3/feedparser/feedparsertest.py	2013-03-09 11:38:04.664372770 +0100
747a33b
@@ -163,9 +163,9 @@
747a33b
     try:
747a33b
         if not eval(evalString, globals(), env):
747a33b
             failure=(msg or 'not eval(%s) \nWITH env(%s)' % (evalString, pprint.pformat(env)))
747a33b
-            raise self.failureException, failure
747a33b
+            raise self.failureException(failure)
747a33b
         if not everythingIsUnicode(env):
747a33b
-            raise self.failureException, "not everything is unicode \nWITH env(%s)" % (pprint.pformat(env), )
747a33b
+            raise self.failureException("not everything is unicode \nWITH env(%s)" % (pprint.pformat(env), ))
747a33b
     except SyntaxError:
747a33b
         # Python 3 doesn't have the `u""` syntax, so evalString needs to be modified,
747a33b
         # which will require the failure message to be updated
747a33b
@@ -173,7 +173,7 @@
747a33b
         evalString = re.sub(unicode2_re, _s2bytes(' "'), evalString)
747a33b
         if not eval(evalString, globals(), env):
747a33b
             failure=(msg or 'not eval(%s) \nWITH env(%s)' % (evalString, pprint.pformat(env)))
747a33b
-            raise self.failureException, failure
747a33b
+            raise self.failureException(failure)
747a33b
 
747a33b
 class BaseTestCase(unittest.TestCase):
747a33b
     failUnlessEval = failUnlessEval
747a33b
@@ -742,7 +742,7 @@
747a33b
         skipUnless = '1'
747a33b
     search_results = desc_re.search(data)
747a33b
     if not search_results:
747a33b
-        raise RuntimeError, "can't parse %s" % xmlfile
747a33b
+        raise RuntimeError("can't parse %s" % xmlfile)
747a33b
     description, evalString = map(lambda s: s.strip(), list(search_results.groups()))
747a33b
     description = xmlfile + ": " + unicode(description, 'utf8')
747a33b
     return description, evalString, skipUnless