question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pytest test session starts very slow sometimes

See original GitHub issue

it seems that pytest happens stuck on “test session starts” sometimes, can anyone give me a hint?

# sample
base_args = ["--pyargs", "halphas", "-s", "-v", "--disable-warnings", "-rsxX","--show-capture=stdout", "--show-capture=stderr"]
logger.info("......start......")
sys.exit(pytest.main(base_args))
image

pytest==6.2.5 python==3.7.12

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
unmurphycommented, Jun 28, 2022

thanks all! @nicoddemus, according to your suggestion, i found and resolved this problem. The point is reportportal which provided by Epam, when pytest session started, reportportal will send some client info to google analytics, however the network is inaccessible sometimes cause of company internal security policy. after comment related code block, everything seems to be working fine.

1reaction
s1aw1kcommented, Jun 24, 2022

Good luck with you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Very slow test setup in pytest 4.2.0+ · Issue #4824 - GitHub
I found a performance degradation in a particular version. I run pytest --setuponly tests/chainer_tests > /dev/null command. pytest version ...
Read more >
How to speed up pytest - python - Stack Overflow
Collecting tests ran incredibly slow. It turned out to be my antivirus software (Avast) that was causing the problem. When I disabled the ......
Read more >
Basic patterns and examples — pytest documentation
Sometimes a test session might get stuck and there might be no easy way to figure out which test got stuck, for example...
Read more >
pytest Documentation - Read the Docs
pytest -m slow. Will run all tests which are decorated with the @pytest.mark.slow decorator. For more information see marks.
Read more >
How To Improve Appium Test Speed and Reliability - HeadSpin
Let's face it, Appium tests have sometimes been accused of being slow and ... This is a good start, but it still doesn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found