Message167081
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. |
|
Date |
User |
Action |
Args |
2012-08-01 04:11:54 | meador.inge | set | recipients:
+ meador.inge, jcea, pitrou, benjamin.peterson, stutzbach, hynek |
2012-08-01 04:11:53 | meador.inge | set | messageid: <1343794313.61.0.919802358255.issue15488@psf.upfronthosting.co.za> |
2012-08-01 04:11:52 | meador.inge | link | issue15488 messages |
2012-08-01 04:11:51 | meador.inge | create | |
|