-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdebug.py
33 lines (25 loc) · 898 Bytes
/
debug.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python
##############################################################################
#
# diffpy.srreal Complex Modeling Initiative
# (c) 2016 Brookhaven Science Associates,
# Brookhaven National Laboratory.
# All rights reserved.
#
# File coded by: Pavol Juhas
#
# See AUTHORS.txt for a list of people who contributed.
# See LICENSE.txt for license information.
#
##############################################################################
"""Convenience module for debugging the unit tests using.
python -m diffpy.srreal.tests.debug
Exceptions raised by failed tests or other errors are not caught.
"""
if __name__ == "__main__":
import sys
from diffpy.srreal.tests import testsuite
pattern = sys.argv[1] if len(sys.argv) > 1 else ""
suite = testsuite(pattern)
suite.debug()
# End of file