summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests.py')
-rw-r--r--tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests.py b/tests.py
index e637657..78927ac 100644
--- a/tests.py
+++ b/tests.py
@@ -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())