Skip to content

Reduce pytest collection time by 80% - #5305

Open
harshil21 wants to merge 1 commit into
no-fixture-req-testsfrom
reduce-pytest-collection-time
Open

Reduce pytest collection time by 80%#5305
harshil21 wants to merge 1 commit into
no-fixture-req-testsfrom
reduce-pytest-collection-time

Conversation

@harshil21

Copy link
Copy Markdown
Member

One of the annoying things about running pytest now is that the collection time on my computer takes a really long time, over 8 seconds for me. I thought this was a good exploratory problem for AI to solve and damn did it do a good job - collection time is now less than 2 seconds for me.

It bumps pytest-asyncio to the latest version which solves the collection time issue, so I guess this is a 2 birds 1 stone situation.

Also deleted the windows event loop workaround, let's see if those tests pass normally now.

@harshil21 harshil21 added the ⚙️ tests affected functionality: tests label Jul 24, 2026
@harshil21
harshil21 changed the base branch from no-fixture-req-tests to master July 24, 2026 02:25
@harshil21
harshil21 changed the base branch from master to no-fixture-req-tests July 24, 2026 02:26
@harshil21
harshil21 requested a review from Poolitzer July 30, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ tests affected functionality: tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant