diff tests/test-config-env.py @ 31857:08fbc97d1364

tests: print Unix style paths in *.py tests These tests don't support (glob). I didn't audit all tests, but these ones were failing.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 09 Apr 2017 22:19:27 -0400
parents d83e51654c8a
children a22915edc279
line wrap: on
line diff
--- a/tests/test-config-env.py	Sun Apr 09 12:53:31 2017 -0700
+++ b/tests/test-config-env.py	Sun Apr 09 22:19:27 2017 -0400
@@ -8,6 +8,7 @@
     encoding,
     rcutil,
     ui as uimod,
+    util,
 )
 
 testtmp = encoding.environ['TESTTMP']
@@ -40,7 +41,7 @@
     ui = uimod.ui.load()
     for section, name, value in ui.walkconfig():
         source = ui.configsource(section, name)
-        print('%s.%s=%s # %s' % (section, name, value, source))
+        print('%s.%s=%s # %s' % (section, name, value, util.pconvert(source)))
     print('')
 
 # environment variable overrides