Skip to content

Temporary files and directories from pytest #426

Description

@anand-avinash

Running the pytest creates some temporary files and directories that are not deleted automatically.

The temporary files are pointings.npy and difference.npy (when pytest is called twice) - each ~250MB in size. It seems like they are coming from benchmarks/pointing_generation.py, but I am not sure why pytest is running this script.

The temporary directories are cmb and nonlin_example. They are created when lbs.Simulation() is called in test functions. An appropriate solution would be passing tmp_path to the base_dir argument of simulation class as explained here: https://docs.pytest.org/en/stable/how-to/tmp_path.html.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions