Code: Select all
======================================================================
ERROR: test_tetra10_yml (femtest.app.test_mesh.TestMeshEleTetra10)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/freecad/Mod/Fem/femtest/app/test_mesh.py", line 508, in test_tetra10_yml
femmesh_testfile = read(outfile)
File "/usr/lib64/freecad/Mod/Fem/feminout/importYamlJsonMesh.py", line 166, in read
raw_mesh_data = yaml.load(fp)
File "/usr/lib/python3.8/site-packages/yaml/__init__.py", line 109, in load
raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348
======================================================================
ERROR: TestStartGui (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: TestStartGui
Traceback (most recent call last):
File "/usr/lib/python3.8/unittest/loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
File "/usr/lib/python3.8/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 146, in _import
return original_import(name, *args, **kwargs)
File "/usr/lib64/freecad/Mod/Start/TestStartGui.py", line 25, in <module>
from TestStart.TestStartPage import TestStartPage
File "/usr/lib/python3.8/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 146, in _import
return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'TestStart'
----------------------------------------------------------------------
Ran 583 tests in 305.758s
FAILED (errors=2)
System exit
Code: Select all
diff --git a/src/Mod/Fem/feminout/importYamlJsonMesh.py b/src/Mod/Fem/feminout/importYamlJsonMesh.py
index 9886248..43820c1 100644
--- a/src/Mod/Fem/feminout/importYamlJsonMesh.py
+++ b/src/Mod/Fem/feminout/importYamlJsonMesh.py
@@ -162,7 +162,7 @@ def read(
or fileExtension.lower() == ".yml"
) and has_yaml:
fp = pyopen(fileString, "rt")
- raw_mesh_data = yaml.load(fp)
+ raw_mesh_data = yaml.load(fp, Loader=yaml.SafeLoader)
fp.close()
else:
Console.PrintError(
--
2.31.1
After solving these two issues, I get additional test errors:
Code: Select all
======================================================================
ERROR: test_all_css_placeholders_removed (TestStart.TestStartPage.TestStartPage)
Check to see if all of the CSS placeholders have been replaced.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/freecad/Mod/Start/TestStart/TestStartPage.py", line 44, in test_all_css_placeholders_removed
page = StartPage.handle()
File "/usr/lib64/freecad/Mod/Start/StartPage/StartPage.py", line 334, in handle
ALTCSS = encode(f.read())
File "/usr/bin/../lib/python3.8/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 434: ordinal not in range(128)
======================================================================
ERROR: test_all_html_placeholders_removed (TestStart.TestStartPage.TestStartPage)
Check to see if all of the HTML placeholders have been replaced.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/freecad/Mod/Start/TestStart/TestStartPage.py", line 72, in test_all_html_placeholders_removed
page = StartPage.handle()
File "/usr/lib64/freecad/Mod/Start/StartPage/StartPage.py", line 334, in handle
ALTCSS = encode(f.read())
File "/usr/bin/../lib/python3.8/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 434: ordinal not in range(128)
======================================================================
ERROR: test_all_js_placeholders_removed (TestStart.TestStartPage.TestStartPage)
Check to see if all of the JavaScript placeholders have been replaced.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/freecad/Mod/Start/TestStart/TestStartPage.py", line 52, in test_all_js_placeholders_removed
page = StartPage.handle()
File "/usr/lib64/freecad/Mod/Start/StartPage/StartPage.py", line 334, in handle
ALTCSS = encode(f.read())
File "/usr/bin/../lib/python3.8/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 434: ordinal not in range(128)
======================================================================
ERROR: test_files_do_not_contain_backslashes (TestStart.TestStartPage.TestStartPage)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/freecad/Mod/Start/TestStart/TestStartPage.py", line 79, in test_files_do_not_contain_backslashes
page = StartPage.handle()
File "/usr/lib64/freecad/Mod/Start/StartPage/StartPage.py", line 334, in handle
ALTCSS = encode(f.read())
File "/usr/bin/../lib/python3.8/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 434: ordinal not in range(128)
======================================================================
ERROR: test_html_validates (TestStart.TestStartPage.TestStartPage)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/freecad/Mod/Start/TestStart/TestStartPage.py", line 97, in test_html_validates
page = self.sanitize(StartPage.handle()) # Remove potentially sensitive data
File "/usr/lib64/freecad/Mod/Start/StartPage/StartPage.py", line 334, in handle
ALTCSS = encode(f.read())
File "/usr/bin/../lib/python3.8/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 434: ordinal not in range(128)
----------------------------------------------------------------------
Ran 587 tests in 304.174s
FAILED (errors=5)
System exit
OS: Gentoo/Linux (XFCE//usr/share/xsessions/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.Unknown
Build type: Gentoo
Python version: 3.8.8
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)