From: Ben Darnell Date: Mon, 17 Sep 2018 12:53:08 +0000 (-0400) Subject: queues_test: Fix comment X-Git-Tag: v6.0.0b1~28^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3bb9fa1cdb672ddf6a341f7256b09d3a7d07371;p=thirdparty%2Ftornado.git queues_test: Fix comment This test inaccurately described the behavior it was testing. --- diff --git a/tornado/test/queues_test.py b/tornado/test/queues_test.py index d63882a9d..954021327 100644 --- a/tornado/test/queues_test.py +++ b/tornado/test/queues_test.py @@ -273,8 +273,11 @@ class QueuePutTest(AsyncTestCase): @gen_test def test_float_maxsize(self): - # Non-int maxsize must round down: http://bugs.python.org/issue21723 - q = queues.Queue(maxsize=1.3) + # If a float is passed for maxsize, a reasonable limit should + # be enforced, instead of being treated as unlimited. + # It happens to be rounded up. + # http://bugs.python.org/issue21723 + q = queues.Queue(maxsize=1.3) # type: ignore self.assertTrue(q.empty()) self.assertFalse(q.full()) q.put_nowait(0)