1. Christian Heimes
  2. defusedxml

Commits

Christian Heimes  committed f823704

test monkey patching a bit

  • Participants
  • Parent commits a2054fa
  • Branches default

Comments (0)

Files changed (1)

File tests.py

View file
  • Ignore whitespace
 from pyexpat import ExpatError
 
 from defusedxml import cElementTree, ElementTree, minidom, pulldom, sax, xmlrpc
+from defusedxml import defuse_stdlib
 from defusedxml import (DefusedXmlException, DTDForbidden, EntitiesForbidden,
                         ExternalReferenceForbidden, NotSupportedError)
 from defusedxml.common import PY3, PY26, PY31
 
+
 try:
     import gzip
 except ImportError:
 if __name__ == "__main__":
     suite = test_main()
     result = unittest.TextTestRunner(verbosity=1).run(suite)
+    # TODO: test that it actually works
+    defuse_stdlib()
     sys.exit(not result.wasSuccessful())