mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
Remove unneeded imports of 'warnings'.
This commit is contained in:
parent
905820ccba
commit
c745df8519
2 changed files with 0 additions and 2 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
import warnings
|
|
||||||
import pickle, cPickle
|
import pickle, cPickle
|
||||||
|
|
||||||
from test.test_support import TESTFN, unlink, run_unittest
|
from test.test_support import TESTFN, unlink, run_unittest
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,6 @@ class ReprTests(unittest.TestCase):
|
||||||
'<built-in method split of str object at 0x'))
|
'<built-in method split of str object at 0x'))
|
||||||
|
|
||||||
def test_xrange(self):
|
def test_xrange(self):
|
||||||
import warnings
|
|
||||||
eq = self.assertEquals
|
eq = self.assertEquals
|
||||||
eq(repr(xrange(1)), 'xrange(1)')
|
eq(repr(xrange(1)), 'xrange(1)')
|
||||||
eq(repr(xrange(1, 2)), 'xrange(1, 2)')
|
eq(repr(xrange(1, 2)), 'xrange(1, 2)')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue