]> granicus.if.org Git - python/commitdiff
Fix when pyexpat not built
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 30 Jul 2001 21:47:25 +0000 (21:47 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 30 Jul 2001 21:47:25 +0000 (21:47 +0000)
Import pyexpat first so that import error occurs when it is not
available.

Lib/test/test_pyexpat.py

index 873dd69a8c2522af9435e6ed4f93e6d0a705d3d7..404dc3553187fea201b43bebfd1aa74726f52887 100644 (file)
@@ -3,6 +3,7 @@
 # XXX TypeErrors on calling handlers, or on bad return values from a
 # handler, are obscure and unhelpful.
 
+import pyexpat
 from xml.parsers import expat
 
 from test_support import sortdict