mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
bpo-28395: Remove unnecessary semicolons in tests (GH-26868)
(cherry picked from commit 5a3108044d
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
parent
ef89b2bf42
commit
fcde2c6a8c
8 changed files with 31 additions and 30 deletions
|
@ -148,7 +148,8 @@ class TestBasic(unittest.TestCase):
|
|||
self.assertEqual(d.count(None), 16)
|
||||
|
||||
def test_comparisons(self):
|
||||
d = deque('xabc'); d.popleft()
|
||||
d = deque('xabc')
|
||||
d.popleft()
|
||||
for e in [d, deque('abc'), deque('ab'), deque(), list(d)]:
|
||||
self.assertEqual(d==e, type(d)==type(e) and list(d)==list(e))
|
||||
self.assertEqual(d!=e, not(type(d)==type(e) and list(d)==list(e)))
|
||||
|
@ -562,8 +563,8 @@ class TestBasic(unittest.TestCase):
|
|||
support.unlink(support.TESTFN)
|
||||
|
||||
def test_init(self):
|
||||
self.assertRaises(TypeError, deque, 'abc', 2, 3);
|
||||
self.assertRaises(TypeError, deque, 1);
|
||||
self.assertRaises(TypeError, deque, 'abc', 2, 3)
|
||||
self.assertRaises(TypeError, deque, 1)
|
||||
|
||||
def test_hash(self):
|
||||
self.assertRaises(TypeError, hash, deque('abc'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue