Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
pytest-dev
/
pytest
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
3.3k
Star
14.4k
Code
Issues
684
Pull requests
127
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Commits
Breadcrumbs
History for
pytest
testing
code
test_source.py
on
main
User selector
All users
All time
Commit history
Commits on Jul 21, 2026
Fix missing traceback source for code with cwd-relative filenames (#14744)
Show description for 34b6a4e
Zac-HD
and
claude
authored
34b6a4e
View commit details
Copy full SHA for 34b6a4e
View code at this point
Browse repository at this point
Commits on Apr 9, 2026
testing: avoid legacy forms of `warns`, `raises`, `deprecated_call`
Show description for 2b5952c
jakkdl
authored and
bluetech
committed
2b5952c
View commit details
Copy full SHA for 2b5952c
View code at this point
Browse repository at this point
Commits on Nov 21, 2025
Fix internal error when source is modified (#13884)
Show description for c4142af
solaluset
authored
c4142af
View commit details
Copy full SHA for c4142af
View code at this point
Browse repository at this point
Commits on Sep 21, 2025
Comply with new lint rule for unused variables
nicoddemus
committed
779cecd
View commit details
Copy full SHA for 779cecd
View code at this point
Browse repository at this point
Commits on Mar 21, 2025
[pre-commit.ci] pre-commit autoupdate (#13306)
Show description for e34fc62
pre-commit-ci[bot]
and
Pierre-Sassoulas
authored
e34fc62
View commit details
Copy full SHA for e34fc62
View code at this point
Browse repository at this point
Commits on Dec 7, 2024
fixtures: replace fixture representation with a class (#12473)
Show description for ecde993
4 people
authored
ecde993
View commit details
Copy full SHA for ecde993
View code at this point
Browse repository at this point
Commits on Nov 25, 2024
Upgrade doc and CI after dropping python 3.8
Pierre-Sassoulas
committed
a4cb74e
View commit details
Copy full SHA for a4cb74e
View code at this point
Browse repository at this point
Commits on May 19, 2024
Add Python 3.13 (beta1) support
bluetech
committed
1cb704f
View commit details
Copy full SHA for 1cb704f
View code at this point
Browse repository at this point
Commits on May 15, 2024
Spelling and minor changes (#12122)
jsoref
authored
8d00811
View commit details
Copy full SHA for 8d00811
View code at this point
Browse repository at this point
Commits on Mar 2, 2024
Add consider_namespace_packages ini option
Show description for 111c0d9
nicoddemus
committed
111c0d9
View commit details
Copy full SHA for 111c0d9
View code at this point
Browse repository at this point
Commits on Jan 28, 2024
mypy: disallow untyped defs by default (#11862)
Show description for 878af85
nicoddemus
authored
878af85
View commit details
Copy full SHA for 878af85
View code at this point
Browse repository at this point
Commits on Jun 30, 2023
Drop Python 3.7
Zac-HD
committed
f4e3b4a
View commit details
Copy full SHA for f4e3b4a
View code at this point
Browse repository at this point
Commits on Jun 20, 2023
Add encoding in more tests
Zac-HD
committed
661b938
View commit details
Copy full SHA for 661b938
View code at this point
Browse repository at this point
Commits on Feb 11, 2022
Add autoflake to pre-commit configuration (#9666)
nicoddemus
authored
8afec9a
View commit details
Copy full SHA for 8afec9a
View code at this point
Browse repository at this point
Commits on Dec 27, 2021
Fix typos (#9424)
kianmeng
authored
55debfa
View commit details
Copy full SHA for 55debfa
View code at this point
Browse repository at this point
Commits on Dec 22, 2021
fix typing issues in mypy 0.920
asottile
committed
c69b84f
View commit details
Copy full SHA for c69b84f
View code at this point
Browse repository at this point
Commits on Dec 7, 2021
Fixed error message prints function decorators when using assert in Python 3.9 and above. (#9359)
yuvalshi0
authored
dc70915
View commit details
Copy full SHA for dc70915
View code at this point
Browse repository at this point
Commits on Apr 5, 2021
Fix error with --import-mode=importlib and modules containing dataclasses or pickle (#7870)
Show description for b706a2c
tadeu
authored
b706a2c
View commit details
Copy full SHA for b706a2c
View code at this point
Browse repository at this point
Commits on Feb 20, 2021
Remove some unused 'tmpdir's
matthewhughes934
committed
0e5e4e0
View commit details
Copy full SHA for 0e5e4e0
View code at this point
Browse repository at this point
Commits on Jan 1, 2021
pytest-dev#8204 migrate tests on testing/code/test_source to tmp_path
sousajo
committed
ac428f6
View commit details
Copy full SHA for ac428f6
View code at this point
Browse repository at this point
Commits on Dec 22, 2020
code: convert from py.path to pathlib
bluetech
committed
92ba96b
View commit details
Copy full SHA for 92ba96b
View code at this point
Browse repository at this point
Commits on Oct 31, 2020
code: simplify Code construction
bluetech
committed
531416c
View commit details
Copy full SHA for 531416c
View code at this point
Browse repository at this point
testing/test_source: use unqualified imports
bluetech
committed
6506f01
View commit details
Copy full SHA for 6506f01
View code at this point
Browse repository at this point
Commits on Oct 6, 2020
py36+: com2ann
asottile
committed
33d119f
View commit details
Copy full SHA for 33d119f
View code at this point
Browse repository at this point
Commits on Aug 4, 2020
typing: set warn_unreachable
Show description for 9ab14c6
bluetech
committed
9ab14c6
View commit details
Copy full SHA for 9ab14c6
View code at this point
Browse repository at this point
Commits on Jul 4, 2020
testing: skip some unreachable code in coverage
bluetech
committed
11efe05
View commit details
Copy full SHA for 11efe05
View code at this point
Browse repository at this point
Commits on Jul 1, 2020
code/source: inline getsource()
Show description for f5c69f3
bluetech
committed
f5c69f3
View commit details
Copy full SHA for f5c69f3
View code at this point
Browse repository at this point
code/source: remove compiling functions
Show description for ef39115
bluetech
committed
ef39115
View commit details
Copy full SHA for ef39115
View code at this point
Browse repository at this point
code/source: remove unused method Source.putaround()
bluetech
committed
4a27d7d
View commit details
Copy full SHA for 4a27d7d
View code at this point
Browse repository at this point
code/source: remove unused method Source.isparseable()
bluetech
committed
a7303b5
View commit details
Copy full SHA for a7303b5
View code at this point
Browse repository at this point
code/source: remove support for comparing Source with str
Show description for a127a22
bluetech
committed
a127a22
View commit details
Copy full SHA for a127a22
View code at this point
Browse repository at this point
code/source: remove Source(deindent: bool) parameter
Show description for 4108174
bluetech
committed
4108174
View commit details
Copy full SHA for 4108174
View code at this point
Browse repository at this point
Commits on May 19, 2020
Add requested comment as per review
nicoddemus
committed
55099e5
View commit details
Copy full SHA for 55099e5
View code at this point
Browse repository at this point
(no) coverage
blueyed
authored and
nicoddemus
committed
b98a182
View commit details
Copy full SHA for b98a182
View code at this point
Browse repository at this point
Test behavior of Source with regard to decorators
Show description for 61180ee
blueyed
authored and
nicoddemus
committed
61180ee
View commit details
Copy full SHA for 61180ee
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.