@@ -70,7 +70,7 @@ def f(s):
7070 ray .shutdown ()
7171
7272 ray .init (num_cpus = 1 , include_dashboard = False )
73- with pytest .raises (ValueError , match = "a Ray object whose owner is unknown" ):
73+ with pytest .raises (ValueError , match = "Ray object whose owner is unknown" ):
7474 f .remote (my_ref ) # This would cause full CPython death.
7575
7676 ray .shutdown ()
@@ -92,7 +92,7 @@ def f(s):
9292 ray .shutdown ()
9393
9494 ray .init (num_cpus = 1 , include_dashboard = False )
95- with pytest .raises (ValueError , match = "a Ray object whose owner is unknown" ):
95+ with pytest .raises (ValueError , match = "Ray object whose owner is unknown" ):
9696 f .remote ([my_ref ]) # This would cause full CPython death.
9797
9898 ray .shutdown ()
@@ -110,7 +110,7 @@ def test_ray_shutdown_then_get(short_gcs_publish_timeout, shutdown_only):
110110 ray .shutdown ()
111111
112112 ray .init (num_cpus = 1 , include_dashboard = False )
113- with pytest .raises (ValueError , match = "a Ray object whose owner is unknown" ):
113+ with pytest .raises (ValueError , match = "Ray objects whose owner is unknown" ):
114114 # This used to cause ray to hang indefinitely (without timeout) or
115115 # throw a timeout exception if a timeout was provided. Now it is expected to
116116 # throw an exception reporting the unknown object.
@@ -137,7 +137,7 @@ def test_ray_shutdown_then_wait(short_gcs_publish_timeout, shutdown_only):
137137 # function to wait for the valid references; however, if all the
138138 # references are unknown, we expect an error.
139139 ready , not_ready = ray .wait ([my_new_ref , my_ref ])
140- with pytest .raises (ValueError , match = "a Ray object whose owner is unknown" ):
140+ with pytest .raises (ValueError , match = "Ray object whose owner is unknown" ):
141141 # This used to cause ray to hang indefinitely (without timeout) or
142142 # forever return all tasks as not-ready if a timeout was provided.
143143 # Now it is expected to throw an exception reporting if all objects are
0 commit comments