You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2008-08-21.14:52:48.669>created_at=<Date2008-03-18.19:12:36.109>labels= ['interpreter-core', 'type-bug', 'tests']
title='get rid of warnings in regrtest with -3'updated_at=<Date2008-08-21.14:52:48.668>user='https://bugs.python.org/bethard'
No, *correct usage* of the stdlib should not result in Py3k warnings.
Old APIs should still be tested, which I suppose is part of the reason
that there are so many warnings from testing.
bethard commented on Mar 18, 2008
bethardmannequin
MannequinAuthor
More actions
Fair enough. I agree that the deprecated APIs should still be tested.
But there are a lot of other warnings, e.g. where the standard lib uses has_key instead of in. These should be removed. The only
warnings should be those that are actively testing deprecated APIs.
Testing of deprecated APIs should probably temporarily suppress the Py3K
warnings while they're executing, though that's not really crucial.
Reducing the flood of warnings is really worthwhile -- I just fixed a
bug in test_atexit which only appeared when -3 was supplied.
Activity
bethard commentedon Mar 18, 2008
Running the test suite with -3 enabled issues a load of warnings. The
Python 2.6 library should not issue any py3k warnings.
benjaminp commentedon Mar 18, 2008
No, *correct usage* of the stdlib should not result in Py3k warnings.
Old APIs should still be tested, which I suppose is part of the reason
that there are so many warnings from testing.
bethard commentedon Mar 18, 2008
Fair enough. I agree that the deprecated APIs should still be tested.
But there are a lot of other warnings, e.g. where the standard lib uses
has_keyinstead ofin. These should be removed. The onlywarnings should be those that are actively testing deprecated APIs.
Testing of deprecated APIs should probably temporarily suppress the Py3K
warnings while they're executing, though that's not really crucial.
Reducing the flood of warnings is really worthwhile -- I just fixed a
bug in test_atexit which only appeared when -3 was supplied.
benjaminp commentedon Mar 18, 2008
I made a little decorator which silences py3k warnings. It could be
useful for test.test_support.
benjaminp commentedon Aug 21, 2008
Brett has been doing this.