Fix #2159. Disable JUnit in Behave in Blender due to Etree conflicts.

This commit is contained in:
Dion Moult
2022-08-26 13:40:20 +10:00
parent 4b4e2e1622
commit eb2a71bf48
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -393,6 +393,9 @@ endif
cd dist/working/ && wget https://raw.githubusercontent.com/IfcOpenShell/IfcOpenShell/v0.7.0/src/ifcbimtester/patch/runner_util.patch
cd dist/working/ && patch ../blenderbim/libs/site/packages/behave/model_core.py < model_core.patch
cd dist/working/ && patch ../blenderbim/libs/site/packages/behave/runner_util.py < runner_util.patch
# See bug #2159
cd dist/working/ && wget https://raw.githubusercontent.com/IfcOpenShell/IfcOpenShell/v0.7.0/src/ifcbimtester/patch/junit.patch
cd dist/working/ && patch ../blenderbim/libs/site/packages/behave/reporter/junit.py < junit.patch
rm -rf dist/working
# Required by ids - uh, not any more, but I'm trying it out in the drawing module
+11
View File
@@ -0,0 +1,11 @@
--- junit-original.py 2022-08-26 13:20:23.148507399 +1000
+++ junit.py 2022-08-26 13:20:47.087450150 +1000
@@ -108,7 +108,7 @@
ElementTree.ElementTree._write(self, file, node, encoding,
namespaces)
-if hasattr(ElementTree, '_serialize'):
+if hasattr(ElementTree, '_serialize') and False:
# pylint: disable=protected-access
def _serialize_xml2(write, elem, encoding, qnames, namespaces,
orig=ElementTree._serialize_xml):