Skip to content

Commit

Permalink
Fix tests for newer line_profiler version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodd committed Sep 10, 2023
1 parent 0f5e727 commit 1d649a6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def profiled_function():
lprof_path = Path(win.config.stats)
assert lprof_path.is_file()
assert (
win.dockOutputWidget.outputWidget.toPlainText()
== f"Wrote profile results to {lprof_path}\n"
win.dockOutputWidget.outputWidget.toPlainText().split("\n")[0]
== f"Wrote profile results to {lprof_path}"
)

tree = win.resultsTreeWidget
Expand Down Expand Up @@ -87,8 +87,8 @@ def profiled_function2():
lprof_path = Path(win.config.stats)
assert lprof_path.is_file()
assert (
win.dockOutputWidget.outputWidget.toPlainText()
== f"Wrote profile results to {lprof_path}\n"
win.dockOutputWidget.outputWidget.toPlainText().split("\n")[0]
== f"Wrote profile results to {lprof_path}"
)

tree = win.resultsTreeWidget
Expand All @@ -106,8 +106,8 @@ def not_profiled_function():
lprof_path = Path(win.config.stats)
assert lprof_path.is_file()
assert (
win.dockOutputWidget.outputWidget.toPlainText()
== f"Wrote profile results to {lprof_path}\n"
win.dockOutputWidget.outputWidget.toPlainText().split("\n")[0]
== f"Wrote profile results to {lprof_path}"
)

tree = win.resultsTreeWidget
Expand All @@ -127,8 +127,8 @@ def not_profiled_function():
lprof_path = Path(win.config.stats)
assert lprof_path.is_file()
assert (
win.dockOutputWidget.outputWidget.toPlainText()
== f"Wrote profile results to {lprof_path}\n"
win.dockOutputWidget.outputWidget.toPlainText().split("\n")[0]
== f"Wrote profile results to {lprof_path}"
)

tree = win.resultsTreeWidget
Expand Down

0 comments on commit 1d649a6

Please sign in to comment.