Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* fix urllib2 import

* use six
  • Loading branch information
dizcology authored and engelke committed Mar 20, 2019
1 parent d16240c commit d44b097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/analyze/beta_snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from six.moves.urllib.request import urlopen
import time
import urllib2
import uuid

import beta_snippets
Expand All @@ -29,7 +29,7 @@

@pytest.fixture(scope='session')
def video_path(tmpdir_factory):
file = urllib2.urlopen(
file = urlopen(
'http://storage.googleapis.com/cloud-samples-data/video/cat.mp4')
path = tmpdir_factory.mktemp('video').join('file.mp4')
with open(str(path), 'wb') as f:
Expand Down

0 comments on commit d44b097

Please sign in to comment.