mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Deprecate the new module for removal in 3.0.
This commit is contained in:
parent
d03238a647
commit
d7265d6483
5 changed files with 13 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue