diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-06-09 12:30:13 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-06-09 12:30:13 -0700 |
commit | e81010daa404eb01abe1618942c7e7bfc3277599 (patch) | |
tree | f3d8a96dad9453eedff048d0d1255589c5d68c2f /tests | |
parent | 2e22a6210c411a0c85a551b2f07afb38624a7457 (diff) | |
parent | e66de3809b5e2b17e57af469df3750a87bbd1ec0 (diff) |
Merge branch '2.1'
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_client.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/test_client.py b/tests/test_client.py index ad0561f2..bddaf4bc 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -297,13 +297,10 @@ class SSHClientTest (unittest.TestCase): verify that when an SSHClient is collected, its transport (and the transport's packetizer) is closed. """ - # Unclear why this is borked on Py3, but it is, and does not seem worth - # pursuing at the moment. Skipped on PyPy because it fails on travis - # for unknown reasons, works fine locally. - # XXX: It's the release of the references to e.g packetizer that fails - # in py3... - if not PY2 or platform.python_implementation() == "PyPy": + # Skipped on PyPy because it fails on travis for unknown reasons + if platform.python_implementation() == "PyPy": return + threading.Thread(target=self._run).start() self.tc = paramiko.SSHClient() @@ -321,8 +318,8 @@ class SSHClientTest (unittest.TestCase): del self.tc # force a collection to see whether the SSHClient object is deallocated - # correctly. 2 GCs are needed to make sure it's really collected on - # PyPy + # 2 GCs are needed on PyPy, time is needed for Python 3 + time.sleep(0.3) gc.collect() gc.collect() |