➜

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.

作者 vstinner
收信人 benjamin.peterson, eryksun, holdenweb, methane, pitrou, vstinner
日期 2014-03-28.10:28:55
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <CAMpsgwaHfd1zeheg4FNuQnuFazLE23u+mgr8bsVG1NNyDK=jLw@mail.gmail.com>
In-reply-to <1396001059.41.0.163306259797.issue21074@psf.upfronthosting.co.za>
内容
> For example. I want to write test like this:
>
> @unittest.skip("This test requires huge memory")

There is @test.support.bigmemtest(size=_2G, memuse=1) decorator which
is more convinient than the skip decorators. See
Lib/test/test_bigmem.py.

You can use tracemalloc to get the memory peak:
tracemalloc.get_traced_memory()[1] is the peak.
历史
日期 用户 动作 参数
2014-03-28 10:28:56vstinner修改recipients: + vstinner, holdenweb, pitrou, benjamin.peterson, methane, eryksun
2014-03-28 10:28:56vstinner链接issue21074 messages
2014-03-28 10:28:55vstinner创建