|
15 | 15 | try: |
16 | 16 | import unittest2 as unittest |
17 | 17 | except ImportError: |
18 | | - import unittest # noqa |
| 18 | + import unittest # noqa |
19 | 19 |
|
20 | 20 | from itertools import islice, cycle |
21 | 21 | from mock import Mock |
@@ -139,7 +139,7 @@ def host_down(): |
139 | 139 | threads.append(Thread(target=host_down)) |
140 | 140 |
|
141 | 141 | # make the GIL switch after every instruction, maximizing |
142 | | - # the chace of race conditions |
| 142 | + # the chance of race conditions |
143 | 143 | check = six.PY2 or '__pypy__' in sys.builtin_module_names |
144 | 144 | if check: |
145 | 145 | original_interval = sys.getcheckinterval() |
@@ -363,6 +363,7 @@ def test_default_dc(self): |
363 | 363 | policy.on_add(host_remote) |
364 | 364 | self.assertFalse(policy.local_dc) |
365 | 365 |
|
| 366 | + |
366 | 367 | class TokenAwarePolicyTest(unittest.TestCase): |
367 | 368 |
|
368 | 369 | def test_wrap_round_robin(self): |
@@ -520,7 +521,6 @@ def test_status_updates(self): |
520 | 521 | qplan = list(policy.make_query_plan()) |
521 | 522 | self.assertEqual(qplan, []) |
522 | 523 |
|
523 | | - |
524 | 524 | def test_statement_keyspace(self): |
525 | 525 | hosts = [Host(str(i), SimpleConvictionPolicy) for i in range(4)] |
526 | 526 | for host in hosts: |
@@ -667,6 +667,7 @@ def test_schedule(self): |
667 | 667 |
|
668 | 668 | ONE = ConsistencyLevel.ONE |
669 | 669 |
|
| 670 | + |
670 | 671 | class RetryPolicyTest(unittest.TestCase): |
671 | 672 |
|
672 | 673 | def test_read_timeout(self): |
|
0 commit comments