Skip to content

Commit

Permalink
remove mock (pytorch#2096)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier authored Apr 14, 2020
1 parent 9bb43c6 commit ad4daec
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ before_install:
fi
- pip install future
- pip install pytest pytest-cov codecov
- pip install mock
- pip install typing
- |
if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then
Expand Down
1 change: 0 additions & 1 deletion packaging/torchvision/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ test:
requires:
- pytest
- scipy
- mock
- av
- ca-certificates
{{ environ.get('CONDA_TYPING_CONSTRAINT') }}
Expand Down
2 changes: 1 addition & 1 deletion packaging/windows/internal/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set PYTHON_VERSION=%PYTHON_PREFIX:py=cp%
if "%BUILD_VISION%" == "" (
pip install future pytest coverage hypothesis protobuf
) ELSE (
pip install future pytest "pillow>=4.1.1" mock
pip install future pytest "pillow>=4.1.1"
)

for /F "delims=" %%i in ('where /R %SRC_DIR%\output *%MODULE_NAME%*%PYTHON_VERSION%*.whl') do pip install "%%i"
Expand Down
2 changes: 1 addition & 1 deletion test/test_datasets.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import os
import unittest
import mock
from unittest import mock
import numpy as np
import PIL
from PIL import Image
Expand Down
1 change: 0 additions & 1 deletion test/test_transforms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import mock
import torch
import torchvision.transforms as transforms
import torchvision.transforms.functional as F
Expand Down

0 comments on commit ad4daec

Please sign in to comment.