Skip to content

Commit

Permalink
fix(python): omit implicit 'site' from import-timing test (#14009)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Jan 26, 2024
1 parent 5df9150 commit 22512e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/tests/unit/test_polars_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"")
Expand Down

0 comments on commit 22512e2

Please sign in to comment.