mirror of https://github.com/python/cpython
Remove unneeded imports of 'warnings'.
This commit is contained in:
parent
905820ccba
commit
c745df8519
|
@ -3,7 +3,6 @@
|
|||
import os
|
||||
import sys
|
||||
import unittest
|
||||
import warnings
|
||||
import pickle, cPickle
|
||||
|
||||
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'))
|
||||
|
||||
def test_xrange(self):
|
||||
import warnings
|
||||
eq = self.assertEquals
|
||||
eq(repr(xrange(1)), 'xrange(1)')
|
||||
eq(repr(xrange(1, 2)), 'xrange(1, 2)')
|
||||
|
|
Loading…
Reference in New Issue