From 83d1175c32a0638460b51cc8ce7eb1df3a4cf949 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Thu, 12 Jan 2023 16:30:59 -0500 Subject: Update a bunch of no/low impact python2/3 references/comments --- tests/test_client.py | 8 ++++---- tests/util.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/test_client.py b/tests/test_client.py index cb34348a..c9e64c0b 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -443,7 +443,7 @@ class SSHClientTest(ClientTest): verify that when an SSHClient is collected, its transport (and the transport's packetizer) is closed. """ - # Skipped on PyPy because it fails on travis for unknown reasons + # Skipped on PyPy because it fails on CI for unknown reasons if platform.python_implementation() == "PyPy": return @@ -465,9 +465,9 @@ class SSHClientTest(ClientTest): # force a collection to see whether the SSHClient object is deallocated # 2 GCs are needed on PyPy, time is needed for Python 3 - # TODO: this still fails randomly under CircleCI under Python 3.7, 3.8 - # at the very least. bumped sleep 0.3->1.0s but the underlying - # functionality should get reevaluated once we drop Python 2. + # TODO 4.0: this still fails randomly under CircleCI under Python 3.7, + # 3.8 at the very least. bumped sleep 0.3->1.0s but the underlying + # functionality should get reevaluated now we've dropped Python 2. time.sleep(1) gc.collect() gc.collect() diff --git a/tests/util.py b/tests/util.py index 00642cb0..79ce2c61 100644 --- a/tests/util.py +++ b/tests/util.py @@ -137,8 +137,8 @@ def is_low_entropy(): """ Attempts to detect whether running interpreter is low-entropy. - Classified as being in 32-bit mode under Python 2, or 32-bit mode and with - the hash seed set to zero under Python 3. + "low-entropy" is defined as being in 32-bit mode and with the hash seed set + to zero. """ is_32bit = struct.calcsize("P") == 32 / 8 # I don't see a way to tell internally if the hash seed was set this -- cgit v1.2.3