Skip to content

Commit 1ab8249

Browse files
author
Wei Chu
committed
fix sanity
1 parent b5c5037 commit 1ab8249

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/unit/test_transformer.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
# or in the 'license' file accompanying this file. This file is
1010
# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
12-
# language governing permissions and limitations under the License.
12+
# language governing permissions and limitations under the License.
1313

14-
from mock import Mock, patch
14+
from __future__ import absolute_import
15+
16+
from mock import Mock, patch
1517
import pytest
1618

1719
from sagemaker_inference import environment
@@ -32,7 +34,7 @@
3234

3335
def test_default_transformer():
3436
transformer = PyTorchTransformer()
35-
37+
3638
assert isinstance(transformer._default_inference_handler, DefaultPytorchInferenceHandler)
3739
assert transformer._initialized is False
3840
assert transformer._environment is None
@@ -140,7 +142,8 @@ def test_default_transform_fn():
140142

141143

142144
def test_run_handle_function():
143-
def three_inputs_func(a, b, c): pass
145+
def three_inputs_func(a, b, c):
146+
pass
144147

145148
three_inputs_mock = Mock(spec=three_inputs_func)
146149
a = Mock()

0 commit comments

Comments
 (0)