Skip to content

Commit

Permalink
Write settings with syntax error on /tmp
Browse files Browse the repository at this point in the history
The .py file into the repo was preventing us to generate RPM packages
  • Loading branch information
seocam committed Dec 9, 2015
1 parent ec901ab commit 078f21c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion colab/utils/tests/settings_with_syntax_error.py

This file was deleted.

6 changes: 4 additions & 2 deletions colab/utils/tests/test_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ def test_load_py_file_with_io_error(self):
_load_py_file, 'settings_test', '/etc/colab/')

def test_load_py_file_with_syntax_error(self):
with file('/tmp/settings_with_syntax_error.py', 'w') as temp_settings:
temp_settings.write('(')

self.assertRaises(InaccessibleSettings,
_load_py_file, 'settings_with_syntax_error',
test_files_dir)
_load_py_file, 'settings_with_syntax_error', '/tmp')

def test_load_py_file(self):
py_settings = _load_py_file('colab_settings', test_files_dir)
Expand Down

0 comments on commit 078f21c

Please sign in to comment.