Skip to content

Commit

Permalink
Fix paramiko stubtest on Windows (#9179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Nov 12, 2022
1 parent 4bad015 commit 1724fb3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions stubs/paramiko/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ paramiko.SFTPServer.__init__
paramiko.Transport.open_x11_channel
paramiko.Transport.send_ignore
paramiko.Transport.start_server
paramiko._winapi
paramiko.py3compat.input
paramiko.py3compat.BytesIO.readlines
paramiko.py3compat.BytesIO.seek
Expand All @@ -13,4 +12,3 @@ paramiko.transport.Transport.open_x11_channel
paramiko.transport.Transport.send_ignore
paramiko.transport.Transport.start_server
paramiko.util.SupportsClose
paramiko.win_pageant
2 changes: 2 additions & 0 deletions stubs/paramiko/@tests/stubtest_allowlist_darwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
paramiko._winapi
paramiko.win_pageant
2 changes: 2 additions & 0 deletions stubs/paramiko/@tests/stubtest_allowlist_linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
paramiko._winapi
paramiko.win_pageant
2 changes: 2 additions & 0 deletions stubs/paramiko/@tests/stubtest_allowlist_win32.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Type-checkers don't support architecture checks. So we have to Union
paramiko.win_pageant.ULONG_PTR
4 changes: 4 additions & 0 deletions stubs/paramiko/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
version = "2.12.*"
requires = ["types-cryptography"]

[tool.stubtest]
# linux and darwin are equivalent
platforms = ["linux", "win32"]

0 comments on commit 1724fb3

Please sign in to comment.