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

why disable use __init__? #142

Open
FunkyGod opened this issue Jan 10, 2023 · 2 comments
Open

why disable use __init__? #142

FunkyGod opened this issue Jan 10, 2023 · 2 comments

Comments

@FunkyGod
Copy link

image
image
want reload function init!
tks.

@pig98
Copy link

pig98 commented May 19, 2023

Why not use preTest fun?

@eeelin
Copy link
Collaborator

eeelin commented May 19, 2023

Please use preTest or initTest instead of __init__. The reason we disable __init__ for a TestCase is to prevent unexpected behavior during the test loading stage. For example, if you have pending operations like a network request that could cause significant delays, it will cause test loading being hang or slow.

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

No branches or pull requests

3 participants