xrmx / bootchart

merge of bootchart-collector and pybootchartgui
GNU General Public License v2.0
233 stars 88 forks source link

bootchart2-0.14.4 fails tests with python3 #36

Closed jlec closed 12 years ago

jlec commented 12 years ago

Ran 5 tests in 1.144s

FAILED (failures=1) Testing pybootchartgui/tests/process_tree_test.py...

EEEEEE

ERROR: testBuild (main.TestProcessTree)

Traceback (most recent call last): File "pybootchartgui/tests/process_tree_test.py", line 49, in testBuild self.checkAgainstJavaExtract(self.mk_fname('extract.processtree.1.log'), process_tree) File "pybootchartgui/tests/process_tree_test.py", line 42, in checkAgainstJavaExtract self.assertEqual(long(tokens[2]), 10 * actual.start_time) NameError: global name 'long' is not defined

ERROR: testMergeExploders (main.TestProcessTree)

Traceback (most recent call last): File "pybootchartgui/tests/process_tree_test.py", line 67, in testMergeExploders self.checkAgainstJavaExtract(self.mk_fname('extract.processtree.3c.log'), process_tree) File "pybootchartgui/tests/process_tree_test.py", line 42, in checkAgainstJavaExtract self.assertEqual(long(tokens[2]), 10 * actual.start_time) NameError: global name 'long' is not defined

ERROR: testMergeLogger (main.TestProcessTree)

Traceback (most recent call last): File "pybootchartgui/tests/process_tree_test.py", line 54, in testMergeLogger self.checkAgainstJavaExtract(self.mk_fname('extract.processtree.2.log'), process_tree) File "pybootchartgui/tests/process_tree_test.py", line 42, in checkAgainstJavaExtract self.assertEqual(long(tokens[2]), 10 * actual.start_time) NameError: global name 'long' is not defined

ERROR: testMergeRuns (main.TestProcessTree)

Traceback (most recent call last): File "pybootchartgui/tests/process_tree_test.py", line 84, in testMergeRuns self.checkAgainstJavaExtract(self.mk_fname('extract.processtree.3e.log'), process_tree) File "pybootchartgui/tests/process_tree_test.py", line 42, in checkAgainstJavaExtract self.assertEqual(long(tokens[2]), 10 * actual.start_time) NameError: global name 'long' is not defined

ERROR: testMergeSiblings (main.TestProcessTree)

Traceback (most recent call last): File "pybootchartgui/tests/process_tree_test.py", line 75, in testMergeSiblings self.checkAgainstJavaExtract(self.mk_fname('extract.processtree.3d.log'), process_tree) File "pybootchartgui/tests/process_tree_test.py", line 42, in checkAgainstJavaExtract self.assertEqual(long(tokens[2]), 10 * actual.start_time) NameError: global name 'long' is not defined

ERROR: testPrune (main.TestProcessTree)

Traceback (most recent call last): File "pybootchartgui/tests/process_tree_test.py", line 60, in testPrune self.checkAgainstJavaExtract(self.mk_fname('extract.processtree.3b.log'), process_tree) File "pybootchartgui/tests/process_tree_test.py", line 42, in checkAgainstJavaExtract self.assertEqual(long(tokens[2]), 10 * actual.start_time) NameError: global name 'long' is not defined


Ran 6 tests in 2.266s

FAILED (errors=6) make: *\ [test] Error 1

xrmx commented 12 years ago

Ah! as always i've missed something :) thanks for spotting