py3: add a test to show `hg diff` works on Python 3
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 02 Jun 2017 10:14:00 +0530
changeset 32644 01a95cbbff56
parent 32643 1df98fc923d4
child 32645 74e9496e4986
py3: add a test to show `hg diff` works on Python 3
tests/test-py3-commands.t
--- a/tests/test-py3-commands.t	Thu Jun 01 02:25:18 2017 +0530
+++ b/tests/test-py3-commands.t	Fri Jun 02 10:14:00 2017 +0530
@@ -118,6 +118,13 @@
   $ $PYTHON3 $HGBIN add iota
   $ $PYTHON3 $HGBIN status
   A iota
+  $ hg diff --nodates --git
+  diff --git a/iota b/iota
+  new file mode 100644
+  --- /dev/null
+  +++ b/iota
+  @@ -0,0 +1,1 @@
+  +This is the file 'iota'.
   $ $PYTHON3 $HGBIN commit --message 'commit performed in Python 3'
   $ $PYTHON3 $HGBIN status