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

Fix test collection issues #801

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Fix test collection issues #801

merged 1 commit into from
Feb 28, 2025

Conversation

acirikTT
Copy link
Collaborator

I am fixing a few things that I observed while trying to run tests:

  1. Pin diffusers package version
  2. Rename pattern/test_detr.py. Without rename, I get this error:
import file mismatch:
imported module 'test_detr' has this __file__ attribute:
  /home/ubuntu/pytorch2.0_ttnn/tests/models/detr/test_detr.py
which is not the same as the test file we want to collect:
  /home/ubuntu/pytorch2.0_ttnn/tests/pattern/test_detr.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
  1. Rename pattern/test_index.py file. Without it, I get this error:
import file mismatch:
imported module 'test_index' has this __file__ attribute:
  /home/ubuntu/pytorch2.0_ttnn/tests/lowering/misc/test_index.py
which is not the same as the test file we want to collect:
  /home/ubuntu/pytorch2.0_ttnn/tests/pattern/test_index.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

Ticket

Link to Github Issue

Problem description

Provide context for the problem

What's changed

Describe the approach used to solve the problem.
Summarize the changes made and their impact

I am fixing a few things that I observed while trying to run tests:

1. Pin `diffusers` package version
2. Rename `pattern/test_detr.py`. Without rename, I get this error:

```
import file mismatch:
imported module 'test_detr' has this __file__ attribute:
  /home/ubuntu/pytorch2.0_ttnn/tests/models/detr/test_detr.py
which is not the same as the test file we want to collect:
  /home/ubuntu/pytorch2.0_ttnn/tests/pattern/test_detr.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
```

3. Rename `pattern/test_index.py` file. Without it, I get this error:

```
import file mismatch:
imported module 'test_index' has this __file__ attribute:
  /home/ubuntu/pytorch2.0_ttnn/tests/lowering/misc/test_index.py
which is not the same as the test file we want to collect:
  /home/ubuntu/pytorch2.0_ttnn/tests/pattern/test_index.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
```
@acirikTT acirikTT added this pull request to the merge queue Feb 28, 2025
Merged via the queue into main with commit 72c55fd Feb 28, 2025
1 check passed
@acirikTT acirikTT deleted the ali/fix-test-collection branch February 28, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants