forked from diffpy/diffpy.pdfgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.py
36 lines (27 loc) · 980 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
34
35
36
#!/usr/bin/env python
##############################################################################
#
# (c) 2016 Brookhaven Science Associates, Brookhaven National Laboratory.
# (c) 2024 The Trustees of Columbia University in the City of New York.
# All rights reserved.
#
# File coded by: Billinge Group members and community contributors.
#
# See GitHub contributions for a more detailed list of contributors.
# https://github.com/diffpy/diffpy.pdfgui/graphs/contributors
#
# See LICENSE.rst for license information.
#
##############################################################################
"""
Convenience module for debugging the unit tests using
python -m diffpy.pdfgui.tests.debug
Exceptions raised by failed tests or other errors are not caught.
"""
if __name__ == "__main__":
import sys
from diffpy.pdfgui.tests import testsuite
pattern = sys.argv[1] if len(sys.argv) > 1 else ""
suite = testsuite(pattern)
suite.debug()
# End of file