[atest] improve environment variable reporting draft content-divergent
authorDavid Douard <david.douard@logilab.fr>
Thu, 13 Nov 2014 14:32:39 +0100
changeset 1742 3cdc3ef300a4
unstable content-divergent: a9b471081580 (draft) predecessor b522e994f799
parent 1741 b89dc2e234ff
child 1743 a9b471081580
[atest] improve environment variable reporting
_apycotlib/atest.py
--- a/_apycotlib/atest.py	Thu Nov 13 14:00:29 2014 +0100
+++ b/_apycotlib/atest.py	Thu Nov 13 14:32:39 2014 +0100
@@ -199,7 +199,7 @@
         """set a new value for an environment variable
         """
         if self.writer:
-            self.writer.debug('Set %s=%r', envvar, value)
+            self.writer.debug(repr(value), path=envvar)
         orig_value = os.environ.get(envvar)
         self._tracks[uid] = orig_value
         os.environ[envvar]  = value