[Python-3000] refleaks and other errors (original) (raw)
Neal Norwitz nnorwitz at gmail.com
Wed Mar 21 07:49:01 CET 2007
- Previous message: [Python-3000] refleaks and other errors
- Next message: [Python-3000] refleaks and other errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
That was mostly the first line of my message, although it was a bit terse. :-)
It's just a cmd line option to regrtest.py -R 4:3: Everything else is the same.
The way I run it for test_grammar:
./python -E -tt ./Lib/test/regrtest.py -R 4:3: test_grammar
You can also pass "-R ::" instead of "-R 4:3:" however that takes longer and generally doesn't help much.
Note that some tests that normally pass will fail (not the refleaks, actually fail) with this option due to the test not cleaning up after itself.
n
On 3/20/07, Guido van Rossum <guido at python.org> wrote:
I'm pretty sure I introduced leaks with the new metaclass code; it was a bit of a rush job and there's plenty of new C code. I need a hint on how to reproduce this myself for a single test...
On 3/20/07, Neal Norwitz <nnorwitz at gmail.com> wrote: > regrtest.py -R 4:3: # on 64-bit, but that might only affect the xpickle error > > testgrammar leaked [14, 14, 14] references > testdoctest leaked [84, 84, 84] references > testctypes leaked [13, 13, 13] references > testdescrtut leaked [417, 417, 417] references > testgenerators leaked [227, 227, 227] references > testmetaclass leaked [284, 284, 284] references > testmodulefinder leaked [186, 186, 186] references > testscope leaked [78, 78, 78] references > testthreadinglocal leaked [102, 102, 102] references > testunpack leaked [55, 55, 55] references > testweakref leaked [79, 79, 79] references > > > test testcpickle failed -- errors occurred; run in verbose mode for details > test testio failed -- errors occurred; run in verbose mode for details > test teststructmembers failed -- errors occurred; run in verbose mode > for details > > test testfileio failed -- Traceback (most recent call last): > File "/home/neal/python/dev/py3k/Lib/test/testfileio.py", line 37, > in testSeekTell > self.f.seek(0) > IOError: [Errno 22] Invalid argument > > testsocketssl skipped -- socket module has no ssl support > > test testxpickle failed -- Traceback (most recent call last): > File "/home/neal/python/dev/py3k/Lib/test/pickletester.py", line > 503, in testints > self.assertEqual(expected, n2) > AssertionError: -9223372036854775807 != 1 > > test testxreload failed -- Traceback (most recent call last): > > > testgrammar has these two cases leaking 7 refs each: > class foo:return 1 > class foo:yield 1 _> ________________________ > Python-3000 mailing list > Python-3000 at python.org > http://mail.python.org/mailman/listinfo/python-3000 > Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org >
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] refleaks and other errors
- Next message: [Python-3000] refleaks and other errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]