Skip to content

Error on test_ffd_iges_pipe_mod_through_topods_shape #285

@ndem0

Description

@ndem0

Describe the bug
Error in IGES file, only for some combination of Operating Systems and Versions

To Reproduce
python -m pytest tests/test_ffdcad

Expected behavior
No issue triggered.

Output

___________ TestFFDCAD.test_ffd_iges_pipe_mod_through_topods_shape ____________

self = <tests.test_ffdcad.TestFFDCAD testMethod=test_ffd_iges_pipe_mod_through_topods_shape>

    def test_ffd_iges_pipe_mod_through_topods_shape(self):
        filename = 'tests/test_datasets/test_pipe_hollow.iges'
        orig_shape = CADDeformation.read_shape(filename)
        ffd = FFD(None,30,30,30,1e-4)
        ffd.read_parameters(
            filename='tests/test_datasets/parameters_test_ffd_iges.prm')
        mod_shape = ffd(orig_shape)
        CADDeformation.write_shape('test_pipe_hollow_result.iges', mod_shape)
        with open('test_pipe_hollow_result.iges', "r") as created, \
             open('tests/test_datasets/test_pipe_hollow_out_true.iges', "r") as reference:
             ref = reference.readlines()[5:]
             cre = created.readlines()[5:]
>            self.assertEqual(len(ref),len(cre))
E            AssertionError: 5511 != 5510

tests\test_ffdcad.py:44: AssertionError
---------------------------- Captured stdout call -----------------------------
Total number of loaded entities 78.

Additional context
Consider updating that file to na ewer OCC version.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions