Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-core
Merge requests
!343
Fix tests on Python 3.11
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix tests on Python 3.11
py3.11
into
master
Overview
2
Commits
1
Pipelines
1
Changes
1
Merged
vlorentz
requested to merge
py3.11
into
master
2 years ago
Overview
2
Commits
1
Pipelines
1
Changes
1
Expand
Resolves
swh/infra/sysadm-environment#4798 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0725fb4b
1 commit,
2 years ago
1 file
+
1
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
swh/core/tests/test_statsd.py
+
1
−
4
Options
@@ -258,14 +258,11 @@ def test_timed_no_metric(statsd):
def
test_timed_coroutine
(
statsd
):
"""
Measure the distribution of a coroutine function
'
s run time.
Warning: Python >= 3.5 only.
"""
import
asyncio
@statsd.timed
(
"
timed.test
"
)
@asyncio.coroutine
def
print_foo
():
async
def
print_foo
():
"""
docstring
"""
time
.
sleep
(
0.5
)
print
(
"
foo
"
)
Loading