Skip to content

Commit 58837ca

Browse files
authored
Merge pull request #42 from Alinvor/kernel
[DONE]合并分支
2 parents 72601ad + 6fbb7e6 commit 58837ca

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

template/template_case.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55

66
class Test_Demo(unittest.TestCase):
77
''' the test demo '''
8+
89
@classmethod
910
def setUpClass(cls):
1011
print("...the set up...")
11-
print
12+
print('')
1213

1314
def setUp(self):
14-
return super(Test_Demo, self).setUp()
15+
super(Test_Demo, self).setUp()
1516

1617
def _xxx(self):
1718
print("the test xxx is succeed.")
@@ -22,11 +23,11 @@ def test_xxx(self):
2223
pass
2324

2425
def tearDown(self):
25-
return super(Test_Demo, self).tearDown()
26+
super(Test_Demo, self).tearDown()
2627

2728
@classmethod
2829
def tearDownClass(cls):
29-
print
30+
print('')
3031
print("...the tear down...")
3132

3233

template/template_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class Template(object):
5-
'the Template class'
5+
'''the Template class'''
66

77
def __init__(self):
88
super(Template, self).__init__()

template/test_template.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,25 @@
55

66
class Test_XXX(unittest.TestCase):
77
''' the test xxx '''
8+
89
@classmethod
910
def setUpClass(cls):
1011
print("...the set up...")
11-
print
12+
print('')
1213

1314
def setUp(self):
14-
return super(Test_XXX, self).setUp()
15+
super(Test_XXX, self).setUp()
1516

1617
def test_xxx(self):
1718
print ("the test xxx(test_template.py) is succeed.")
1819
pass
1920

2021
def tearDown(self):
21-
return super(Test_XXX, self).tearDown()
22+
super(Test_XXX, self).tearDown()
2223

2324
@classmethod
2425
def tearDownClass(cls):
25-
print
26+
print('')
2627
print("...the tear down...")
2728

2829

0 commit comments

Comments
 (0)