summaryrefslogtreecommitdiffstats
path: root/unitest-restful.py
diff options
context:
space:
mode:
authornicolargo <nicolashennion@gmail.com>2016-06-04 19:31:25 +0200
committernicolargo <nicolashennion@gmail.com>2016-06-04 19:31:25 +0200
commit5065ef12e0353f60d41eb03d4b1bf5274b5f80f7 (patch)
tree29d82e180c295225f9e3e018ac0e8f2c10aeb61b /unitest-restful.py
parent53b8095bd3cdae9cd38de44f43e3a74138568195 (diff)
Correct unitest Restfull JSON to be Python compatible
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-xunitest-restful.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unitest-restful.py b/unitest-restful.py
index be29236f..ee59978e 100755
--- a/unitest-restful.py
+++ b/unitest-restful.py
@@ -112,7 +112,7 @@ class TestGlances(unittest.TestCase):
req = requests.get("%s/%s/%s" % (URL, method, i))
self.assertTrue(req.ok)
self.assertIsInstance(req.json(), dict)
- print req.json()[i]
+ print(req.json()[i])
self.assertIsInstance(req.json()[i], numbers.Number)
def test_005_values(self):