Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[easy] fix pytest error related to test name conflict #13

Closed
wants to merge 0 commits into from

Conversation

hudeven
Copy link
Contributor

@hudeven hudeven commented Feb 8, 2022

to reproduce the error, run pytest at "recipes/torchrecipes" and will get error like:

import file mismatch:
imported module 'test_train_app' has this file attribute:
/Users/stevenliu/workspace/torchrecipes/recipes/torchrecipes/audio/source_separation/tests/test_train_app.py
which is not the same as the test file we want to collect:
/Users/stevenliu/workspace/torchrecipes/recipes/torchrecipes/vision/image_classification/tests/test_train_app.py

Adding __init__.py fixed the issue

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 8, 2022
@facebook-github-bot
Copy link
Contributor

@hudeven has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@hudeven has updated the pull request. You must reimport the pull request before landing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants