From 6ad967899d1cefd51784e70719d25a594f1b3813 Mon Sep 17 00:00:00 2001 From: Dennis Burke Date: Sun, 5 May 2013 16:15:46 -0400 Subject: [PATCH] small cleanup. --- setup.py | 4 ++-- textile/tools/imagesize.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index b0b0d3fd..4486e898 100644 --- a/setup.py +++ b/setup.py @@ -20,8 +20,8 @@ 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='textile,text', - test_suite = 'nose.collector', - tests_require = ['nose'], + test_suite='nose.collector', + tests_require=['nose'], include_package_data=True, zip_safe=False, ) diff --git a/textile/tools/imagesize.py b/textile/tools/imagesize.py index a1f64f3c..d75167ca 100644 --- a/textile/tools/imagesize.py +++ b/textile/tools/imagesize.py @@ -37,6 +37,6 @@ def getimagesize(url): def setup_module(module): from nose.plugins.skip import SkipTest try: - from PIL import ImageFile + __import__('PIL') except ImportError: raise SkipTest()