From: Jeremy Hylton Date: Mon, 30 Jul 2001 21:47:25 +0000 (+0000) Subject: Fix when pyexpat not built X-Git-Tag: v2.2a3~925 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c19ec4eab4dbee3494cd8b8db715e2939d2b917;p=python Fix when pyexpat not built Import pyexpat first so that import error occurs when it is not available. --- diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index 873dd69a8c..404dc35531 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py @@ -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