Skip to content

Running pytest seems to create unwanted files #3668

@eminyouskn

Description

@eminyouskn

Summary

I'd like to contribute to this repository. However, after forking the repo, cloning my fork, and running the test suite on Ubuntu, I encountered a small issue.

$ conda create -n pyomo python=3.10
$ pip install -e .[tests]
$ pytest

The tests pass or are skipped as expected. However, several files are generated during the test run and are not listed in .gitignore. As a result, they appear as untracked changes and could be unintentionally committed.

I'm not sure if this is expected behavior, a bug, or something specific to my system. I would appreciate clarification.

List of generated files

  • test_col.col (created in the project root)
  • setsAB.dat (created in pyomo/core/tests/unit/)
  • test_t1_result.lp (created in pyomo/duality/tests/)
  • test_t5_result.lp (created in pyomo/duality/tests/)
  • test4.soln (created in pyomo/solvers/tests/mip/)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtesting_and_ciAny issues related to testing and/or continuous integration (e.g., github, travis, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions