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
This commit is contained in:
Robert Nishihara
2018-08-31 11:24:15 -07:00
committed by Philipp Moritz
parent 3813ae34b3
commit eda6ebb87d
10 changed files with 3185 additions and 3205 deletions
+3 -3
View File
@@ -189,7 +189,7 @@ class TestGlobalScheduler(unittest.TestCase):
assert (db_client_id is not None)
@unittest.skipIf(
os.environ.get('RAY_USE_NEW_GCS', False),
os.environ.get("RAY_USE_NEW_GCS", False),
"New GCS API doesn't have a Python API yet.")
def test_integration_single_task(self):
# There should be three db clients, the global scheduler, the local
@@ -307,13 +307,13 @@ class TestGlobalScheduler(unittest.TestCase):
self.assertEqual(num_tasks_done + num_tasks_waiting, num_tasks)
@unittest.skipIf(
os.environ.get('RAY_USE_NEW_GCS', False),
os.environ.get("RAY_USE_NEW_GCS", False),
"New GCS API doesn't have a Python API yet.")
def test_integration_many_tasks_handler_sync(self):
self.integration_many_tasks_helper(timesync=True)
@unittest.skipIf(
os.environ.get('RAY_USE_NEW_GCS', False),
os.environ.get("RAY_USE_NEW_GCS", False),
"New GCS API doesn't have a Python API yet.")
def test_integration_many_tasks(self):
# More realistic case: should handle out of order object and task