Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-23 Thread Benjamin Peterson
On Sun, Mar 23, 2008 at 6:21 PM, <[EMAIL PROTECTED]> wrote: > > So, regarding -3 warnings in the 2.6 test code, should they be fixed or > not? I think we should introduce a decorator and/or a context manager in test_support like this: def silence_py3k(func): def decorator(*args, **kwargs):

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-23 Thread skip
So, regarding -3 warnings in the 2.6 test code, should they be fixed or not? Skip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archi

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-23 Thread skip
skip> Maybe regrtest should gain a -3 flag. All it would have to do is skip> restart itself moving the -3 from after regrtest to before it. Ehh... That didn't seem like such a great idea about 10 seconds after I hit send. Adding a test3 target to Makefile.pre.in is a lot easier. Skip

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-23 Thread skip
>> Would turning the -3 flag on make it too hard to diagnose problems? Martin> Yes. I don't think it should be turned on regularly in the tests Martin> until they regularly are quiet under -3. Maybe regrtest should gain a -3 flag. All it would have to do is restart itself moving the

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-23 Thread Martin v. Löwis
> Would turning the -3 flag on make it too hard to diagnose problems? Yes. I don't think it should be turned on regularly in the tests until they regularly are quiet under -3. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-23 Thread Steven Bethard
On Sat, Mar 22, 2008 at 2:58 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Steven Bethard wrote: > > Right now, test_py3kwarn only runs if the test suite is run using the > > -3 command line flag to Python. So for most regrtest runs (e.g. the > > buildbots) this test will never be run. > >

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-22 Thread Benjamin Peterson
On Sat, Mar 22, 2008 at 4:08 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > For the buildbots, it would be easy to turn -3 on, though. > > > > Should I work a patch to allow Python code to disable/enable the flag? > > +0. See issue 2458. > > > Regards, > Martin > -- Cheers, Benjami

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-22 Thread Martin v. Löwis
> For the buildbots, it would be easy to turn -3 on, though. > > Should I work a patch to allow Python code to disable/enable the flag? +0. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/py

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-22 Thread Benjamin Peterson
On Sat, Mar 22, 2008 at 3:58 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Steven Bethard wrote: > > Right now, test_py3kwarn only runs if the test suite is run using the > > -3 command line flag to Python. So for most regrtest runs (e.g. the > > buildbots) this test will never be run. > > Fo

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-22 Thread Martin v. Löwis
Steven Bethard wrote: > Right now, test_py3kwarn only runs if the test suite is run using the > -3 command line flag to Python. So for most regrtest runs (e.g. the > buildbots) this test will never be run. For the buildbots, it would be easy to turn -3 on, though. Regards, Martin

Re: [Python-Dev] Making sys.py3k_warning writable

2008-03-22 Thread Benjamin Peterson
On Sat, Mar 22, 2008 at 3:34 PM, Steven Bethard <[EMAIL PROTECTED]> wrote: > Right now, test_py3kwarn only runs if the test suite is run using the > -3 command line flag to Python. So for most regrtest runs (e.g. the > buildbots) this test will never be run. > > It would be nice to be able to tur

[Python-Dev] Making sys.py3k_warning writable

2008-03-22 Thread Steven Bethard
Right now, test_py3kwarn only runs if the test suite is run using the -3 command line flag to Python. So for most regrtest runs (e.g. the buildbots) this test will never be run. It would be nice to be able to turn the flag on from Python (e.g. within test_py3kwarn). Is that possible? Here's what