This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author meador.inge
Recipients benjamin.peterson, hynek, jcea, meador.inge, pitrou, stutzbach
Date 2012-08-01.04:11:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343794313.61.0.919802358255.issue15488@psf.upfronthosting.co.za>
In-reply-to
Content
The test should go in the 'SizeofTest' class and maybe a better test would be a variant of the test already in that class:

    @support.cpython_only
    def test_buffer_freeing(self) :
        bufsize = 4096
        rawio = self.MockRawIO()
        bufio = self.tp(rawio, buffer_size=bufsize)
        size = sys.getsizeof(bufio) - bufsize
        bufio.close()
        self.assertEqual(sys.getsizeof(bufio), size)

Otherwise, LGTM.
History
Date User Action Args
2012-08-01 04:11:54meador.ingesetrecipients: + meador.inge, jcea, pitrou, benjamin.peterson, stutzbach, hynek
2012-08-01 04:11:53meador.ingesetmessageid: <1343794313.61.0.919802358255.issue15488@psf.upfronthosting.co.za>
2012-08-01 04:11:52meador.ingelinkissue15488 messages
2012-08-01 04:11:51meador.ingecreate