Hi! I was upgrading pants. Now I am in `1.23.0`. `...
# general
f
Hi! I was upgrading pants. Now I am in
1.23.0
.
./pants --version
works fine, and also
./pants test ...
works fine. But I encountered a weird bug. I found out that some of my unit tests got run twice, and that caused error. The folder structure has a
__init__.py
and the
BUILD
file is like this:
Copy code
python_tests( 
    name='xxxxx', 
    sources=globs('*.py'), 
    dependencies=[ ... ], 
)
I guess that’s why the same file get run two times. And due to some cache or memory issue, the variables in the first run were not cleaned up, so when the second run start, the value was not as expected, so the assertion failed. This didn’t happen in previous version. Is it due to some upgrade issue? I fixed it by deleting the
__init__.py
file, but I then thought modify
BUILD
file might work as well (?