summaryrefslogtreecommitdiff
path: root/ceilometerclient
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-01-10 02:01:46 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-01-10 02:01:46 +0100
commitce87356c6589d9cad37fd45fcc94e17ba79c381b (patch)
treea2016778d3653b8f744fedf9452313acc61aa73b /ceilometerclient
parentd663570b775bf429c9f6b183d1e7809e4d4a1b2d (diff)
downloadpython-ceilometerclient-ce87356c6589d9cad37fd45fcc94e17ba79c381b.tar.gz
Python 3: fix test_sample_list
Change the counter_volume field of "fake" samples to get compatibility with both Python 2 and 3. In Python 2: >>> print(str(0.261666666666667)) 0.261666666667 In Python 3: >>> print(str(0.261666666666667)) 0.261666666666667 Change-Id: I4beed7aff7e89f891024975b9df9208c987dc87c
Diffstat (limited to 'ceilometerclient')
-rw-r--r--ceilometerclient/tests/v2/test_shell.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ceilometerclient/tests/v2/test_shell.py b/ceilometerclient/tests/v2/test_shell.py
index 3b24b29..e2fb449 100644
--- a/ceilometerclient/tests/v2/test_shell.py
+++ b/ceilometerclient/tests/v2/test_shell.py
@@ -239,19 +239,19 @@ class ShellSampleListCommandTest(utils.BaseTestCase):
"resource_id": "5dcf5537-3161-4e25-9235-407e1385bd35",
"timestamp": "2013-10-15T05:50:30",
"counter_unit": "%",
- "counter_volume": 0.261666666666667,
+ "counter_volume": 0.261666666667,
"counter_type": "gauge"},
{"counter_name": "cpu_util",
"resource_id": "87d197e9-9cf6-4c25-bc66-1b1f4cedb52f",
"timestamp": "2013-10-15T05:50:29",
"counter_unit": "%",
- "counter_volume": 0.261666666666667,
+ "counter_volume": 0.261666666667,
"counter_type": "gauge"},
{"counter_name": "cpu_util",
"resource_id": "5dcf5537-3161-4e25-9235-407e1385bd35",
"timestamp": "2013-10-15T05:40:30",
"counter_unit": "%",
- "counter_volume": 0.251247920133111,
+ "counter_volume": 0.251247920133,
"counter_type": "gauge"},
{"counter_name": "cpu_util",
"resource_id": "87d197e9-9cf6-4c25-bc66-1b1f4cedb52f",