Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-asyncssh
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Debian Python Team
packages
python-asyncssh
Commits
8a5e69ad
Commit
8a5e69ad
authored
2 years ago
by
Nilesh Patra
Browse files
Options
Downloads
Patches
Plain Diff
Cherry-pick upstream patch to fix FTBFS with python3.11 (Closes: #1026586)
parent
08f2f2f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/mock-pathlib-expanduser.patch
+30
-0
30 additions, 0 deletions
debian/patches/mock-pathlib-expanduser.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
31 additions
and
0 deletions
debian/patches/mock-pathlib-expanduser.patch
0 → 100644
+
30
−
0
View file @
8a5e69ad
From 2ff28a51439ec687be687f9b3d204316e60cabcd Mon Sep 17 00:00:00 2001
From: Georg Sauthoff <mail@gms.tf>
Date: Sat, 9 Jul 2022 17:22:55 +0200
Subject: [PATCH] Also patch pathlib expanduser
NB: with recent Python versions the existing `os.path.expanduser()` patch
also affects `pathlib.path.expanduser()` which is invoked by the config
parser for expanding `~/.ssh`.
---
tests/test_config.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/test_config.py b/tests/test_config.py
index 31f055ec..ce3083e3 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -417,8 +417,12 @@
def mock_expanduser(path):
return path
+ def mock_pathlib_expanduser(s):
+ return s._from_parts([os.environ['HOME']] + s._parts[1:])
+
with self.assertRaises(asyncssh.ConfigParseError):
- with patch('os.path.expanduser', mock_expanduser):
+ with patch('os.path.expanduser', mock_expanduser), \
+ patch('pathlib.Path.expanduser', mock_pathlib_expanduser):
self._parse_config('RemoteCommand %d')
def test_uid_percent_expansion_unavailable(self):
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
8a5e69ad
...
...
@@ -2,3 +2,4 @@ sphinx-use-default-theme.patch
0002-skip-tests-requiring-network-access.patch
0003-Revert-fido-0.9.2-support.patch
0004-Handle-ConnectionRefusedError-when-connecting-to-223.patch
mock-pathlib-expanduser.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment