1.1 --- a/tests/macrotest.py Mon Jan 24 16:37:46 2005 +0000
1.2 +++ b/tests/macrotest.py Mon Jan 24 16:38:55 2005 +0000
1.3 @@ -1,6 +1,10 @@
1.4 #!/usr/bin/env python
1.5
1.6 -"A test of macros."
1.7 +"""
1.8 +A test of macros. This file must be compiled using libxml2macro.py. It may then
1.9 +be imported normally in Python, but if run then the compiled module should be
1.10 +invoked directly - ie. as macrotest.pyc.
1.11 +"""
1.12
1.13 import libxml2macro as x2_
1.14 import xml.dom
1.15 @@ -103,8 +107,10 @@
1.16 if __name__ == "__main__":
1.17 import sys
1.18 if len(sys.argv) > 1:
1.19 + print "Running a simple test on", sys.argv[1]
1.20 test_file(sys.argv[1])
1.21 else:
1.22 + print "Running a simple test on some built-in string."
1.23 test()
1.24
1.25 # vim: tabstop=4 expandtab shiftwidth=4