Skip to content

Commit 16fe832

Browse files
committed
Added make_svhn_pytables.py to whitelist_docstrings
[chg] Whitelisted make_svhn_pytables.py to skip docstrings testing on Travis CI. [chg] Added check to ensure 'PYLEARN2_DATA_PATH' is defined as an environment variable before conversion to pytables.
1 parent cf12622 commit 16fe832

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pylearn2/scripts/datasets/make_svhn_pytables.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
import os
88
from pylearn2.datasets.svhn import SVHN
99
from pylearn2.utils.string_utils import preprocess
10-
from pylearn2.testing.skip import skip_if_no_data
1110

12-
skip_if_no_data() # Checking if PYLEARN2_DATA_PATH exists
11+
assert 'PYLEARN2_DATA_PATH' in os.environ, "PYLEARN2_DATA_PATH not defined"
1312

1413
orig_path = preprocess('${PYLEARN2_DATA_PATH}/SVHN/format2/')
1514

0 commit comments

Comments
 (0)