Commits

Brett Cannon  committed ea993ce

Tweak formatting

  • Participants
  • Parent commits 1df781b

Comments (0)

Files changed (1)

 import sys
 import unittest
 import io
-#from StringIO import StringIO
 
 from xml.sax.saxutils import XMLGenerator
 
 
 
 class BaseTests(unittest.TestCase):
+
     module = None
 
     if PY3:
 
     dtd_external_ref = False
 
-
     xml_dtd = os.path.join(HERE, "xmltestdata", "dtd.xml")
     xml_external = os.path.join(HERE, "xmltestdata", "external.xml")
     xml_quadratic = os.path.join(HERE, "xmltestdata", "quadratic.xml")
 
     def test_dtd_with_external_ref(self):
         if self.dtd_external_ref:
-            self.assertRaises(ExternalEntitiesForbidden, self.parse, self.xml_dtd)
+            self.assertRaises(ExternalEntitiesForbidden, self.parse,
+                              self.xml_dtd)
         else:
             self.parse(self.xml_dtd)
 
     def test_external_ref(self):
-        self.assertRaises(ExternalEntitiesForbidden, self.parse, self.xml_external,
-                          forbid_entities=False)
+        self.assertRaises(ExternalEntitiesForbidden, self.parse,
+                          self.xml_external, forbid_entities=False)
 
 
 class TestDefusedcElementTree(BaseTests):