mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 07:49:59 +00:00
pytest: fix warnings from using non-collections
This commit is contained in:
@@ -17,7 +17,7 @@ import ifcopenshell.template
|
||||
@pytest.mark.skip(reason="Current file retention is not automatic anymore if a single instance is alive")
|
||||
@pytest.mark.parametrize(
|
||||
"args",
|
||||
itertools.product((0, 1), (0, 1), (0, 1), (0, 1, 2)),
|
||||
tuple(itertools.product((0, 1), (0, 1), (0, 1), (0, 1, 2))),
|
||||
)
|
||||
def test_file_gc(args):
|
||||
do_run_api, do_delete_ref, file_first, api = args
|
||||
|
||||
@@ -25,7 +25,7 @@ import ifcopenshell.util.unit
|
||||
UNITS_FIXTURE_DIR = pathlib.Path(__file__).parent.parent / "fixtures" / "units"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("ifc_file", UNITS_FIXTURE_DIR.glob("*.ifc"))
|
||||
@pytest.mark.parametrize("ifc_file", tuple(UNITS_FIXTURE_DIR.glob("*.ifc")))
|
||||
def test_file_units_length_convert(ifc_file: str):
|
||||
f = ifcopenshell.open(ifc_file)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user