Skip to content

Commit

Permalink
Import threading + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dsbarinov1 committed Feb 1, 2023
1 parent 103a42b commit 57cc953
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/python/contrib/test_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from tvm.contrib import random
from tvm import rpc
import tvm.testing
import threading


def test_randint():
Expand Down Expand Up @@ -160,7 +161,7 @@ def test_random_fill_mt():
Particularly when MaxConcurrency != num_workers_used_ which is actual for big-little systems.
"""
no_exception_happened = True

def test_body():
try:
num_thread_used = 1
Expand All @@ -178,7 +179,7 @@ def test_body():
x = threading.Thread(target=test_body)
x.start()
x.join()
assert no_exception_happened
assert no_exception_happened


if __name__ == "__main__":
Expand Down

0 comments on commit 57cc953

Please sign in to comment.