components/python/pylxml/patches/test.py.patch
author Rich Burridge <rich.burridge@oracle.com>
Wed, 29 Mar 2017 16:47:08 -0700
changeset 7809 85e8894d1fc6
permissions -rw-r--r--
23093962 Upgrade pylxml to version 3.6.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7809
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
Ignores syntax error in $(SOURCE_DIR)/src/lxml/lxml.etree.pyx.
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
We need to see if this patch is still needed with the very latest version
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
of pylxml, and if so, send it upstream.
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
--- lxml-3.6.4/test.py_orig	2017-01-11 14:03:08.523061540 +0000
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
+++ lxml-3.6.4/test.py	2017-01-11 14:03:27.417867156 +0000
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
@@ -606,14 +606,6 @@
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
             walker = os.path.walk
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
         walker(os.path.abspath(cfg.basedir), add_file, None)
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
 
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
-        try:
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
-            cov.xml_report(modules, outfile='coverage.xml')
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
-            if cfg.coverdir:
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
-                cov.html_report(modules, directory=cfg.coverdir)
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
-        finally:
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
-            # test runs can take a while, so at least try to print something
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
-            cov.report()
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
-
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
     # That's all
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
     if success:
85e8894d1fc6 23093962 Upgrade pylxml to version 3.6.4
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
         return 0