Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
paramiko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
OpenVMS
Python
Modules
paramiko
Commits
05d2fe56ddbf
Commit
05d2fe56ddbf
authored
12 years ago
by
Jeff Forcier
Browse files
Options
Downloads
Patches
Plain Diff
Only override unittest assertions when absolutely necessary.
Fixes #85
parent
e53caa0c2162
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+5
-0
5 additions, 0 deletions
NEWS
tests/test_transport.py
+4
-2
4 additions, 2 deletions
tests/test_transport.py
with
9 additions
and
2 deletions
NEWS
+
5
−
0
View file @
05d2fe56
...
...
@@ -18,6 +18,11 @@
* #90: Ensure that callbacks handed to `SFTPClient.get()` always fire at least
once, even for zero-length files downloaded. Thanks to Github user `@enB` for
the catch.
* #85: Paramiko's test suite overrides
`unittest.TestCase.assertTrue/assertFalse` to provide these modern assertions
to Python 2.2/2.3, which lacked them. However on newer Pythons such as 2.7,
this now causes deprecation warnings. The overrides have been patched to only
execute when necessary. Thanks to `@Arfrever` for catch & patch.
v1.8.0 (3rd Oct 2012)
...
...
This diff is collapsed.
Click to expand it.
tests/test_transport.py
+
4
−
2
View file @
05d2fe56
...
...
@@ -107,4 +107,5 @@
class
TransportTest
(
unittest
.
TestCase
):
if
not
hasattr
(
unittest
.
TestCase
,
'
assertTrue
'
):
assertTrue
=
unittest
.
TestCase
.
failUnless
# for Python 2.3 and below
...
...
@@ -110,4 +111,5 @@
assertTrue
=
unittest
.
TestCase
.
failUnless
# for Python 2.3 and below
if
not
hasattr
(
unittest
.
TestCase
,
'
assertFalse
'
):
assertFalse
=
unittest
.
TestCase
.
failIf
# for Python 2.3 and below
def
setUp
(
self
):
...
...
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