Commit 677dc39d authored by Evan Simpson's avatar Evan Simpson

Put default warning filters back, so that 'make test' runs cleanly.

parent 602c0fcd
...@@ -16,8 +16,8 @@ To be removed together with the API in due time. ...@@ -16,8 +16,8 @@ To be removed together with the API in due time.
""" """
__rcs_id__='$Id: testDeprecatedAPI.py,v 1.5 2003/01/27 22:55:27 gvanrossum Exp $' __rcs_id__='$Id: testDeprecatedAPI.py,v 1.6 2003/12/18 19:58:06 evan Exp $'
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
import ZODB # Sigh. Persistent needs to be set, so we import ZODB. import ZODB # Sigh. Persistent needs to be set, so we import ZODB.
from AccessControl import User from AccessControl import User
...@@ -50,6 +50,8 @@ class DeprecatedAPI(unittest.TestCase): ...@@ -50,6 +50,8 @@ class DeprecatedAPI(unittest.TestCase):
def tearDown(self): def tearDown(self):
warnings.resetwarnings() warnings.resetwarnings()
warnings.simplefilter("ignore", category=PendingDeprecationWarning)
warnings.simplefilter("ignore", category=OverflowWarning)
class BasicUser(DeprecatedAPI): class BasicUser(DeprecatedAPI):
userObject = User.SimpleUser('JoeBloke', '123', [], []) userObject = User.SimpleUser('JoeBloke', '123', [], [])
......
...@@ -49,6 +49,8 @@ class TestWarnFilter(unittest.TestCase): ...@@ -49,6 +49,8 @@ class TestWarnFilter(unittest.TestCase):
def tearDown(self): def tearDown(self):
warnings.resetwarnings() warnings.resetwarnings()
warnings.simplefilter("ignore", category=PendingDeprecationWarning)
warnings.simplefilter("ignore", category=OverflowWarning)
def load_config_text(self, text): def load_config_text(self, text):
# We have to create a directory of our own since the existence # We have to create a directory of our own since the existence
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment