aboutsummaryrefslogtreecommitdiff
path: root/tests/test_plot_utils.py
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2016-03-08 13:59:25 +0000
committerJavi Merino <javi.merino@arm.com>2016-03-08 14:03:58 +0000
commit373c30fb1a6cbc6ae73ebe9017970901211f4e88 (patch)
tree4ddf779ea87aa21da1bde04b8f0ba1a2e6c3ef69 /tests/test_plot_utils.py
parentfb2127422317ed2ed5dbc164be88dfc2cb243edd (diff)
downloadtrappy-373c30fb1a6cbc6ae73ebe9017970901211f4e88.tar.gz
tests: avoid matplotlib warning when running the testsuite
When you try to plot a dataframe with only one index, matplotlib complains: ---8<--- /usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py:2787: UserWarning: Attempting to set identical left==right re sults in singular transformations; automatically expanding. left=0.0, right=0.0 'left=%s, right=%s') % (left, right)) ---8<--- Change the timestamp of the second event to make it more realistic and make sure that the dataframe that is plotted has more than one row.
Diffstat (limited to 'tests/test_plot_utils.py')
-rw-r--r--tests/test_plot_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_plot_utils.py b/tests/test_plot_utils.py
index e912762..c1383a0 100644
--- a/tests/test_plot_utils.py
+++ b/tests/test_plot_utils.py
@@ -185,7 +185,7 @@ class TestPlotUtilsNeedTrace(BaseTestThermal):
"""plot_utils.plot_allfreqs work when there is only one actor"""
in_data = """ kworker/4:1-397 [004] 720.741349: thermal_power_cpu_get: cpus=00000000,00000006 freq=1400000 raw_cpu_power=189 load={23, 12} power=14
- kworker/4:1-397 [004] 720.741349: thermal_power_cpu_limit: cpus=00000000,00000006 freq=1400000 cdev_state=1 power=14"""
+ kworker/4:1-397 [004] 720.741679: thermal_power_cpu_limit: cpus=00000000,00000006 freq=1400000 cdev_state=1 power=14"""
with open("trace.txt", "w") as fout:
fout.write(in_data)