Skip to content

Commit eda6ebb

Browse files
robertnishiharapcmoritz
authored andcommitted
Convert some unittests to pytest. (#2779)
* Convert multi_node_test.py to pytest. * Convert array_test.py to pytest. * Convert failure_test.py to pytest. * Convert microbenchmarks to pytest. * Convert component_failures_test.py to pytest and some minor quotes changes. * Convert tensorflow_test.py to pytest. * Convert actor_test.py to pytest. * Fix. * Fix
1 parent 3813ae3 commit eda6ebb

File tree

10 files changed

+3056
-3076
lines changed

10 files changed

+3056
-3076
lines changed

python/ray/global_scheduler/test/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def test_redis_only_single_task(self):
189189
assert (db_client_id is not None)
190190

191191
@unittest.skipIf(
192-
os.environ.get('RAY_USE_NEW_GCS', False),
192+
os.environ.get("RAY_USE_NEW_GCS", False),
193193
"New GCS API doesn't have a Python API yet.")
194194
def test_integration_single_task(self):
195195
# There should be three db clients, the global scheduler, the local
@@ -307,13 +307,13 @@ def integration_many_tasks_helper(self, timesync=True):
307307
self.assertEqual(num_tasks_done + num_tasks_waiting, num_tasks)
308308

309309
@unittest.skipIf(
310-
os.environ.get('RAY_USE_NEW_GCS', False),
310+
os.environ.get("RAY_USE_NEW_GCS", False),
311311
"New GCS API doesn't have a Python API yet.")
312312
def test_integration_many_tasks_handler_sync(self):
313313
self.integration_many_tasks_helper(timesync=True)
314314

315315
@unittest.skipIf(
316-
os.environ.get('RAY_USE_NEW_GCS', False),
316+
os.environ.get("RAY_USE_NEW_GCS", False),
317317
"New GCS API doesn't have a Python API yet.")
318318
def test_integration_many_tasks(self):
319319
# More realistic case: should handle out of order object and task

0 commit comments

Comments
 (0)