From 4d02863b161108d022b5840f1a8e4b58a75ed088 Mon Sep 17 00:00:00 2001 From: Kale Kundert Date: Thu, 15 Jun 2017 18:56:09 -0700 Subject: [PATCH] Remove a dict-comprehension. Not compatible with python26. --- _pytest/python_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_pytest/python_api.py b/_pytest/python_api.py index 0c0a6bb74..91605aa55 100644 --- a/_pytest/python_api.py +++ b/_pytest/python_api.py @@ -128,9 +128,9 @@ class ApproxMapping(ApproxBase): """ def __repr__(self): - return repr({ - k: self._approx_scalar(v) - for k,v in self.expected.items()}) + return repr(dict( + (k, self._approx_scalar(v)) + for k,v in self.expected.items())) def __eq__(self, actual): if actual.keys() != self.expected.keys():