diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-09 05:18:40 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-09 05:18:40 +0000 |
commit | d7265d64831f870f46b7c61244b2c86dc803f292 (patch) | |
tree | 7c16633c07b27002f987e70296ade6c1b26a0601 /Lib/test/test_new.py | |
parent | d03238a6473cbf5d81d9d99c71e1bab36c3455d8 (diff) | |
download | cpython-git-d7265d64831f870f46b7c61244b2c86dc803f292.tar.gz |
Deprecate the new module for removal in 3.0.
Diffstat (limited to 'Lib/test/test_new.py')
-rw-r--r-- | Lib/test/test_new.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_new.py b/Lib/test/test_new.py index c243b59e91..231f4bb745 100644 --- a/Lib/test/test_new.py +++ b/Lib/test/test_new.py @@ -1,6 +1,7 @@ import unittest from test import test_support -import sys, new +import sys +new = test_support.import_module('new', deprecated=True) class NewTest(unittest.TestCase): def test_spam(self): |