tests: renamed helper to avoid clash with stdlib repr module
authorMartin Geisler <mg@lazybytes.net>
Sun, 17 May 2009 02:31:12 +0200
changeset 8448 0eb8c4df61bd
parent 8447 d5ebcf8f6855
child 8449 807f3f5c60e9
tests: renamed helper to avoid clash with stdlib repr module
tests/printrepr.py
tests/repr.py
tests/test-hgweb-commands
tests/test-simplemerge-cmd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/printrepr.py	Sun May 17 02:31:12 2009 +0200
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+#
+# Copyright 2009 Matt Mackall <mpm@selenic.com> and others
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
+
+"""prints repr(sys.stdin) but preserves newlines in input"""
+
+import sys
+print repr(sys.stdin.read())[1:-1].replace('\\n', '\n'),
--- a/tests/repr.py	Sun May 17 01:24:45 2009 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2009 Matt Mackall <mpm@selenic.com> and others
-#
-# This software may be used and distributed according to the terms of the
-# GNU General Public License version 2, incorporated herein by reference.
-
-"""prints repr(sys.stdin) but preserves newlines in input"""
-
-import sys
-print repr(sys.stdin.read())[1:-1].replace('\\n', '\n'),
--- a/tests/test-hgweb-commands	Sun May 17 01:24:45 2009 +0200
+++ b/tests/test-hgweb-commands	Sun May 17 02:31:12 2009 +0200
@@ -50,7 +50,7 @@
 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=branches'
 echo % changegroup
 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=changegroup' \
-    | $TESTDIR/repr.py
+    | $TESTDIR/printrepr.py
 echo % stream_out
 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=stream_out'
 echo % failing unbundle, requires POST request
--- a/tests/test-simplemerge-cmd	Sun May 17 01:24:45 2009 +0200
+++ b/tests/test-simplemerge-cmd	Sun May 17 02:31:12 2009 +0200
@@ -47,7 +47,7 @@
 python simplemerge -p binary-local base other
 
 echo '% binary file --text'
-python simplemerge -a -p binary-local base other 2>&1 | $TESTDIR/repr.py
+python simplemerge -a -p binary-local base other 2>&1 | $TESTDIR/printrepr.py
 
 echo '% help'
 python simplemerge --help