Skip to content

Commit 4e1937f

Browse files
committed
Fix test
1 parent bbd7984 commit 4e1937f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integ/test_source_dirs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
from tests.integ import DATA_DIR, PYTHON_VERSION
1919

2020

21-
def test_source_dirs(sagemaker_session, tmpdir):
21+
def test_source_dirs(sagemaker_session, tmpdir, sagemaker_local_session):
2222
source_dir = os.path.join(DATA_DIR, 'pytorch_source_dirs')
2323
lib = os.path.join(str(tmpdir), 'alexa.py')
2424

2525
with open(lib, 'w') as f:
2626
f.write('def question(to_anything): return 42')
2727

2828
estimator = PyTorch(entry_point='train.py', role='SageMakerRole', source_dir=source_dir, dependencies=[lib],
29-
py_version=PYTHON_VERSION, train_instance_count=1, train_instance_type='local')
29+
py_version=PYTHON_VERSION, train_instance_count=1, train_instance_type='local',
30+
sagemaker_session=sagemaker_local_session)
3031
try:
3132

3233
estimator.fit()

0 commit comments

Comments
 (0)