summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2013-09-26 15:59:10 -0500
committerGerman M. Bravo <german.mb@deipi.com>2013-09-26 15:59:10 -0500
commit5855acaf0a6468d2111f8d2df89cfa7069fed143 (patch)
treec9ca1aca6225e52673e68af0b8d6a86a697bf31a
parent8304acd00271fe8fab89662fd7e6e4baeadcc427 (diff)
downloadpyscss-5855acaf0a6468d2111f8d2df89cfa7069fed143.tar.gz
If the css file for the test doesn't exist, assume empty
-rw-r--r--scss/tests/test_files.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scss/tests/test_files.py b/scss/tests/test_files.py
index 8a90764..317e833 100644
--- a/scss/tests/test_files.py
+++ b/scss/tests/test_files.py
@@ -30,8 +30,11 @@ def test_pair_programmatic(scss_file_pair):
with open(scss_fn) as fh:
source = fh.read()
- with open(css_fn) as fh:
- expected = fh.read()
+ try:
+ with open(css_fn) as fh:
+ expected = fh.read()
+ except IOError:
+ expected = ''
directory, _ = os.path.split(scss_fn)
include_dir = os.path.join(directory, 'include')