Changeset 938
- Timestamp:
- 10/30/07 14:44:59
- Files:
-
- OWSLib/trunk/tests/runalldoctests.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OWSLib/trunk/tests/runalldoctests.py
r621 r938 10 10 pass 11 11 12 def open_file(filename, mode='r'): 13 """Helper function to open files from within the tests package.""" 14 import os 15 return open(os.path.join(os.path.dirname(__file__), filename), mode) 16 17 EXTRA_GLOBALS = {'open_file': open_file} 18 12 19 def run(pattern): 13 20 if pattern is None: … … 16 23 testfiles = glob.glob(pattern) 17 24 for file in testfiles: 18 doctest.testfile(file )25 doctest.testfile(file, extraglobs=EXTRA_GLOBALS) 19 26 20 27 if __name__ == "__main__":
