21 |
thisdir = os.path.dirname(__file__) |
thisdir = os.path.dirname(__file__) |
22 |
return os.path.join(thisdir, os.pardir) |
return os.path.join(thisdir, os.pardir) |
23 |
|
|
24 |
|
def resource_dir(): |
25 |
|
return os.path.join(thuban_dir(), "Resources") |
26 |
|
|
27 |
def add_thuban_dir_to_path(): |
def add_thuban_dir_to_path(): |
28 |
"""Insert the Thuban directory at the beginning of the python path. |
"""Insert the Thuban directory at the beginning of the python path. |
60 |
# This has to be in a finally clause because unittest.main() |
# This has to be in a finally clause because unittest.main() |
61 |
# ends with a sys.exit to make sure that the process exits with |
# ends with a sys.exit to make sure that the process exits with |
62 |
# an appropriate exit code |
# an appropriate exit code |
63 |
print_garbage_information() |
print_additional_summary() |
64 |
|
|
65 |
|
def print_additional_summary(): |
66 |
|
"""Print some additional summary information after tests have been run""" |
67 |
|
print_garbage_information() |
68 |
|
import xmlsupport |
69 |
|
xmlsupport.print_summary_message() |
70 |
|
|
71 |
def print_garbage_information(): |
def print_garbage_information(): |
72 |
"""Print information about things that haven't been cleaned up. |
"""Print information about things that haven't been cleaned up. |