mirror of
https://github.com/wassname/ray.git
synced 2026-09-10 12:38:43 +08:00
Support non ascii characters in the source code (#4047)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# coding: utf-8
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
@@ -2767,3 +2768,12 @@ def test_raylet_is_robust_to_random_messages(shutdown_only):
|
||||
return 1
|
||||
|
||||
assert ray.get(f.remote()) == 1
|
||||
|
||||
|
||||
def test_non_ascii_comment(ray_start):
|
||||
@ray.remote
|
||||
def f():
|
||||
# 日本語 Japanese comment
|
||||
return 1
|
||||
|
||||
assert ray.get(f.remote()) == 1
|
||||
|
||||
Reference in New Issue
Block a user