tests/testdata/python3/data/noendingnewline.py
raw| 1 | import unittest |
| 2 | |
| 3 | |
| 4 | class TestCase(unittest.TestCase): |
| 5 | |
| 6 | def setUp(self): |
| 7 | unittest.TestCase.setUp(self) |
| 8 | |
| 9 | |
| 10 | def tearDown(self): |
| 11 | unittest.TestCase.tearDown(self) |
| 12 | |
| 13 | def testIt(self): |
| 14 | self.a = 10 |
| 15 | self.xxx() |
| 16 | |
| 17 | |
| 18 | def xxx(self): |
| 19 | if False: |
| 20 | pass |
| 21 | print('a') |
| 22 | |
| 23 | if False: |
| 24 | pass |
| 25 | pass |
| 26 | |
| 27 | if False: |
| 28 | pass |
| 29 | print('rara') |
| 30 | |
| 31 | |
| 32 | if __name__ == '__main__': |
| 33 | print('test2') |
| 34 | unittest.main() |
| 35 | |
| 36 |