forked from root-project/roottest
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommon.py
More file actions
executable file
·34 lines (28 loc) · 762 Bytes
/
common.py
File metadata and controls
executable file
·34 lines (28 loc) · 762 Bytes
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
# File: roottest/python/pickle/common.py
# Author: Wim Lavrijsen (LBNL, [email protected])
# Created: 04/16/08
# Last: 09/24/10
import sys, unittest
pclfn = "PyROOT_test.pcl"
cpclfn = "PyROOT_test.cpcl"
h1name = 'h'
h1title = 'test'
h1nbins = 100
h1binl = -4.
h1binh = +4.
h1entries = 20000
Nvec = 12
Mvec = 7
if sys.hexversion >= 0x3000000:
class MyTestCase( unittest.TestCase ):
def shortDescription( self ):
desc = str(self)
doc_first_line = None
if self._testMethodDoc:
doc_first_line = self._testMethodDoc.split("\n")[0].strip()
if doc_first_line:
desc = doc_first_line
return desc
else:
class MyTestCase( unittest.TestCase ):
pass