diff options
| author | Christian Heimes <christian@python.org> | 2013-02-17 15:31:17 +0100 |
|---|---|---|
| committer | Christian Heimes <christian@python.org> | 2013-02-17 15:31:17 +0100 |
| commit | 7c0fedd2e941df681c2d455006b0ef2f66182756 (patch) | |
| tree | 2c4eeec52208833732a1673ec6c936d861a205ad | |
| parent | 98e72918b67a7775df0c783d6828de17e42a5062 (diff) | |
| download | defusedxml-git-7c0fedd2e941df681c2d455006b0ef2f66182756.tar.gz | |
test monkey patching a bit
| -rw-r--r-- | tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,10 +10,12 @@ from xml.sax import SAXParseException 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: @@ -525,4 +527,6 @@ def test_main(): 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()) |
