windows: adjust PYTHONPATH update in test-status-color.t stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 11 Nov 2024 16:42:20 +0100
branchstable
changeset 52190 02da7e767065
parent 52189 7c1d7edff91b
child 52191 a76dcb82148e
windows: adjust PYTHONPATH update in test-status-color.t On Windows the PATH separator is ";", not ":". The Windows wheel wants it set with ";".
tests/test-status-color.t
--- a/tests/test-status-color.t	Mon Nov 11 16:41:16 2024 +0100
+++ b/tests/test-status-color.t	Mon Nov 11 16:42:20 2024 +0100
@@ -399,9 +399,16 @@
 color coding of error message without curses
 
   $ echo 'raise ImportError' > curses.py
+#if windows
+  $ PYTHONPATH="`pwd`;$PYTHONPATH" hg unknowncommand > /dev/null
+  hg: unknown command 'unknowncommand'
+  (use 'hg help' for a list of commands)
+  [10]
+#else
   $ PYTHONPATH=`pwd`:$PYTHONPATH hg unknowncommand > /dev/null
   hg: unknown command 'unknowncommand'
   (use 'hg help' for a list of commands)
   [10]
+#endif
 
   $ cd ..