Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger.