Patchwork [1,of,2] test-install: perform the wix checking on wdir() instead of

login
register
mail settings
Submitter Bryan O'Sullivan
Date Dec. 23, 2015, 5:35 a.m.
Message ID <CACw0ni+sEWLf6-HS6KYRdqdkuQ2fhyOYXoozo6jVqLVsxmaJDw@mail.gmail.com>
Download mbox | patch
Permalink /patch/12263/
State Not Applicable
Headers show

Comments

Bryan O'Sullivan - Dec. 23, 2015, 5:35 a.m.
On Thu, Dec 17, 2015 at 6:26 PM, Matt Harbison <mharbison72@gmail.com>
wrote:

> test-install: perform the wix checking on wdir() instead of .
>

FYI, test-install.t is broken under Python < 2.7, as etree has changed its
API.

Patch

--- tests/test-install.t 2015-12-22 20:52:28.298100173 -0800
+++ tests/test-install.t.err 2015-12-22 21:30:59.449341488 -0800
@@ -97,17 +97,17 @@ 
   > EOF

   $ python wixxml.py help
-  Not installed:
-    help/common.txt
-    help/hg.1.txt
-    help/hgignore.5.txt
-    help/hgrc.5.txt
-    help/internals/bundles.txt
-    help/internals/changegroups.txt
-  Not tracked:
+  Traceback (most recent call last):
+    File "wixxml.py", line 40, in <module>
+      dir = root.find('.//wix:DirectoryRef', ns)
+  TypeError: find() takes exactly 2 arguments (3 given)
+  [1]

   $ python wixxml.py templates
-  Not installed:
-  Not tracked:
+  Traceback (most recent call last):
+    File "wixxml.py", line 40, in <module>
+      dir = root.find('.//wix:DirectoryRef', ns)
+  TypeError: find() takes exactly 2 arguments (3 given)
+  [1]

 #endif