test is run as a script and when imported via the regression test
framework.
Problem reported by Phillip Porch <root@theporch.com>.
+# test for xml.dom.minidom
+
from xml.dom.minidom import parse, Node, Document, parseString
-import traceback, sys
-tstfile="test.xml"
+import os.path
+import sys
+import traceback
+
+if __name__ == "__main__":
+ base = sys.argv[0]
+else:
+ base = __file__
+tstfile = os.path.join(os.path.dirname(base), "test.xml")
+del base
Node._debug=1