diff --git a/py-polars/tests/unit/test_polars_import.py b/py-polars/tests/unit/test_polars_import.py index a146713f15d0..f9289ea8dda4 100644 --- a/py-polars/tests/unit/test_polars_import.py +++ b/py-polars/tests/unit/test_polars_import.py @@ -27,7 +27,7 @@ def _import_time_from_frame(tm: pl.DataFrame) -> int: def _import_timings() -> bytes: # assemble suitable command to get polars module import timing; # run in a separate process to ensure clean timing results. - cmd = f'{sys.executable} -X importtime -c "import polars"' + cmd = f'{sys.executable} -S -X importtime -c "import polars"' return ( subprocess.run(cmd, shell=True, capture_output=True) .stderr.replace(b"import time:", b"")