summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2022-06-03Add test proving basic behavior of #1822Jeff Forcier
2022-06-03Changelog re #1822, closes #1822Jeff Forcier
2022-06-03split comment to linesyoav
2022-06-03Close socket on failureyoav
As mentioned in socket docs: "Sockets are automatically closed when they are garbage-collected, but it is recommended to close() them explicitly, or to use a with statement around them." Resolve #1126
2022-06-03Skip tests requiring invoke if it's not installedMichał Górny
Since invoke is an optional dependency and only one group of tests require it, skip them gracefully rather than failing if it's not present.
2022-06-03Fix broken unittesty skipTest in locale decoratorJeff Forcier
2022-06-03sftp tests: Replace unittest partsStanislav Levin
The original PR https://github.com/paramiko/paramiko/pull/992 introduced several tests for sftp functionality. These tests made use of unittest's stuff like `assertTrue` and `assertEqual` because at that moment the tests were grouped under the `unittest.TestCase`-based class (`SFTPTest`). Before PR merge `unittest.TestCase` was refactored out from sftp tests (667bd74b139ed86f9b261d3abf5b6042ba80920b) but PR was not updated. The sftp tests are marked with `slow` and that's why they are not failed in CI (slow tests are excluded by default). Fixes: https://github.com/paramiko/paramiko/issues/1941 Signed-off-by: Stanislav Levin <slev@altlinux.org>
2022-06-03Streamline default test name on CircleJeff Forcier
2022-03-11Clarify SFTPClient.open() docs re: actual behavior of BufferedFileJeff Forcier
Closes #2000
2022-02-25blackenJeff Forcier
2022-02-25Comment and changelog re #1985Jeff Forcier
2022-02-25Add six to `install_requires`Sondre Lillebø Gundersen
2021-11-28No idea why the lack of this blew up on circle but not locallyJeff Forcier
Probably the locales differ? sigh
2021-11-28Cut 2.8.1Jeff Forcier
2021-11-28Fix changelog referenceJeff Forcier
2021-11-28Changelog format fix re #992Jeff Forcier
2021-11-28Credit re #992Jeff Forcier
2021-11-28Blacken code for #992Jeff Forcier
2021-11-28Cleanup re #992Jeff Forcier
- remove apparently vestigial bits - remove Python 2.6 related bits - use pytest.skip instead of custom skip
2021-11-28Add changelog entry for #992Martin Packman
2021-11-28Fix failure in listdir when server uses a localeMartin Packman
Fixes #985 SFTPAttributes uses the locale-aware %b directive for the abbreviated month name with time.strftime, but was not decoding the result on Python 2.7. Add a strftime alias in py3compat that will always return unicode, and resolve the mixing of bytes and text in SFTPAttributes methods. Add a test at the listdir level, and a more specific test for the SFTPAttributes asbytes method.
2021-11-28Add new requireNonAsciiLocale test decoratorMartin Packman
2021-11-28Expose Python 2.6 compatible test skip decoratorMartin Packman
2021-11-28Changelog re #1024Jeff Forcier
2021-11-28Catch TypeError and UnsupportedAlgorithm when using Cryptography to load ↵Jeff Forcier
private key material Prior to this change, these exceptions bubble up as-is instead of becoming SSHException instances like most other key-loading errors
2021-11-28Changelog closes #1257, re #1266Jeff Forcier
2021-11-28Tests proving #1257Jeff Forcier
2021-11-28Patch missed RSAKey for some reason. Fixed.Jeff Forcier
2021-11-28Roll back ABC using kit from contributed patchJeff Forcier
- blew up good for me for reasons I don't entirely grok - also feels like too big of a change to do in a patch release - is not a critical piece of the bugfix - NotImplementedError is fine for now
2021-11-28Blacken patch.Jeff Forcier
2021-11-28Check all data on keys when comparing for equalityJosh Snyder
This eliminates the possibility that a hash collision results in two PKey objects that == each other.
2021-11-28Enhance tests of existing/general key cmp/hash behaviorJeff Forcier
Not sure why these were never explicitly tested
2021-11-28Pre-patch test proving security flaw re: 32bit key hash comparisonsJeff Forcier
2021-11-28basic alpine i386 dockerfileJeff Forcier
2021-11-28Fix silly but apparently nonfatal dev-req self-install typoJeff Forcier
2021-11-28Changelog re security flaw email, re #908Jeff Forcier
2021-11-28Blacken for hostkeys fixJeff Forcier
2021-11-28test_hostkeys: test SubDict.__delitem__()Lans Zhang
SubDict.__delitem__() would trigger the KeyError exception if a key type to be deleted is not present. Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
2021-11-28hostkeys: fix raising KeyError in SubDict.__delitem__()Lans Zhang
If the specified key type is found out, the exception KeyError should not happen. Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
2021-10-15Merge branch '2.7' into 2.8Jeff Forcier
2021-10-15Merge branch '2.6' into 2.7Jeff Forcier
2021-10-15Merge branch '2.5' into 2.6Jeff Forcier
2021-10-15Enhance language around SSHClient.close()Jeff Forcier
2021-10-09blackenJeff Forcier
2021-10-09Cut 2.8.0Jeff Forcier
2021-10-09Nix travis from tasksJeff Forcier
2021-10-09Classify bug as major in case I don't cut a bugfix for 2.7Jeff Forcier
2021-10-09For some reason :rfc: blows up where :rfc-reference: does notJeff Forcier
Only when running as part of my fullstack release task, specifically when I load up sphinx+releases to parse the changelog. Makes no sense at all but no time to really dig more...
2021-10-09Massage upstream 'release.all' task too re: custom publishJeff Forcier
2021-10-08Less confusing name of overriding task pleaseJeff Forcier