diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_minidom.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 4819bc6..73c8ac4 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -1,7 +1,17 @@ +# 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 |