Don't skip all the tests on Python 3 when there's no cPickle, just the irrelevant test

This commit is contained in:
hugovk 2014-04-26 20:20:42 +03:00
parent 8794c46318
commit 7d1cdc54c4

View File

@ -41,9 +41,9 @@ def test_pickle_image():
def test_cpickle_image():
# Arrange
try:
import cPickle
import ABCcPickle
except ImportError:
skip()
return
# Act / Assert
for protocol in range(0, cPickle.HIGHEST_PROTOCOL + 1):