diff options
| author | German M. Bravo <german.mb@deipi.com> | 2013-09-26 15:59:10 -0500 |
|---|---|---|
| committer | German M. Bravo <german.mb@deipi.com> | 2013-09-26 15:59:10 -0500 |
| commit | 5855acaf0a6468d2111f8d2df89cfa7069fed143 (patch) | |
| tree | c9ca1aca6225e52673e68af0b8d6a86a697bf31a | |
| parent | 8304acd00271fe8fab89662fd7e6e4baeadcc427 (diff) | |
| download | pyscss-5855acaf0a6468d2111f8d2df89cfa7069fed143.tar.gz | |
If the css file for the test doesn't exist, assume empty
| -rw-r--r-- | scss/tests/test_files.py | 7 |
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') |
