Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Nov 2, 2023
1 parent 0636f84 commit 452c2f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_explicit_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ def func4(a):
print(proc.stderr)
proc.check_returncode()

print('Finished running script')

output_fpath = (temp_dpath / 'custom_output.txt')
raw_output = output_fpath.read_text()
print(f'Contents of {output_fpath}')
print(raw_output)

assert 'Function: func1' not in raw_output
Expand Down
2 changes: 2 additions & 0 deletions tests/test_ipython.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def test_init(self):
self.assertEqual(len(timings), 1) # 1 function

func_data, lines_data = next(iter(timings.items()))
print(f'func_data={func_data}')
print(f'lines_data={lines_data}')
self.assertEqual(func_data[1], 1) # lineno of the function
self.assertEqual(func_data[2], "func") # function name
self.assertEqual(len(lines_data), 1) # 1 line of code
Expand Down

0 comments on commit 452c2f0

Please sign in to comment.