File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ numpy==1.6.1
2
2
cython==0.19.1
3
3
python-dateutil==2.1
4
4
pytz==2013b
5
+ http://www.crummy.com/software/BeautifulSoup/bs4/download/4.2/beautifulsoup4-4.2.0.tar.gz
6
+ html5lib==1.0b2
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def _have_module(module_name):
37
37
38
38
def _skip_if_no (module_name ):
39
39
if not _have_module (module_name ):
40
- raise nose .SkipTest
40
+ raise nose .SkipTest ( "{0} not found" . format ( module_name ))
41
41
42
42
43
43
def _skip_if_none_of (module_names ):
@@ -46,14 +46,16 @@ def _skip_if_none_of(module_names):
46
46
if module_names == 'bs4' :
47
47
import bs4
48
48
if bs4 .__version__ == LooseVersion ('4.2.0' ):
49
- raise nose .SkipTest
49
+ raise nose .SkipTest ( "Bad version of bs4: 4.2.0" )
50
50
else :
51
- if not all (_have_module (module_name ) for module_name in module_names ):
52
- raise nose .SkipTest
51
+ not_found = [module_name for module_name in module_names if not
52
+ _have_module (module_name )]
53
+ if not_found == module_names :
54
+ raise nose .SkipTest ("{0} not found" .format (not_found ))
53
55
if 'bs4' in module_names :
54
56
import bs4
55
57
if bs4 .__version__ == LooseVersion ('4.2.0' ):
56
- raise nose .SkipTest
58
+ raise nose .SkipTest ( "Bad version of bs4: 4.2.0" )
57
59
58
60
59
61
DATA_PATH = get_data_path ()
You can’t perform that action at this time.
0 commit comments