From 73a287e5e0cc3f728ab5e97cd6152145f12633b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cliuxiao=E2=80=9D?= Date: Tue, 26 May 2020 19:46:14 +0800 Subject: [PATCH] pylint clean --- tests/ut/python/exec/test_AssignAdd.py | 2 -- tests/ut/python/ir/test_dtype.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/ut/python/exec/test_AssignAdd.py b/tests/ut/python/exec/test_AssignAdd.py index a7244c5639c..502b7b92f1d 100644 --- a/tests/ut/python/exec/test_AssignAdd.py +++ b/tests/ut/python/exec/test_AssignAdd.py @@ -45,7 +45,6 @@ class Net(nn.Cell): @non_graph_engine def test_AssignAdd_1(): """test AssignAdd 1""" - import mindspore.context as context context.set_context(mode=context.GRAPH_MODE) net = Net() x = Tensor(np.ones([1]).astype(np.int64) * 100) @@ -65,7 +64,6 @@ def test_AssignAdd_1(): @non_graph_engine def test_AssignAdd_2(): """test AssignAdd 2""" - import mindspore.context as context context.set_context(mode=context.GRAPH_MODE) net = Net() x = Tensor(np.ones([1]).astype(np.int64) * 102) diff --git a/tests/ut/python/ir/test_dtype.py b/tests/ut/python/ir/test_dtype.py index 704d09258fb..1523a77ea39 100644 --- a/tests/ut/python/ir/test_dtype.py +++ b/tests/ut/python/ir/test_dtype.py @@ -13,9 +13,9 @@ # limitations under the License. # ============================================================================ """test_dtype""" +from dataclasses import dataclass import numpy as np import pytest -from dataclasses import dataclass import mindspore as ms from mindspore.common import dtype