From 8a600d30b32aee0dd95ff28c02c6e211e6749160 Mon Sep 17 00:00:00 2001 From: Venelin Stoykov Date: Sun, 15 Dec 2013 01:58:22 +0200 Subject: [PATCH] Use force_bytes from imagekit.lib in test_cachefiles --- tests/test_cachefiles.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_cachefiles.py b/tests/test_cachefiles.py index ba250fb..8a93e71 100644 --- a/tests/test_cachefiles.py +++ b/tests/test_cachefiles.py @@ -1,11 +1,8 @@ from django.conf import settings -try: - from django.utils.encoding import force_bytes -except ImportError: - from django.utils.encoding import smart_str as force_bytes from hashlib import md5 from imagekit.cachefiles import ImageCacheFile, LazyImageCacheFile from imagekit.cachefiles.backends import Simple +from imagekit.lib import force_bytes from nose.tools import raises, eq_ from .imagegenerators import TestSpec from .utils import (assert_file_is_truthy, assert_file_is_falsy,