Skip to content

Commit

Permalink
Take a different approach to making .glue unwritable for test, to try…
Browse files Browse the repository at this point in the history
… and get the test to work on Windows.
  • Loading branch information
astrofrog committed Aug 16, 2015
1 parent 598b09d commit 6ea3143
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions glue/qt/tests/test_plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def test_permission_fail(tmpdir):
from ... import config
config.CFG_DIR = tmpdir.join('.glue').strpath

os.mkdir(config.CFG_DIR)
os.chmod(config.CFG_DIR, 0o000)
# Make a *file* at that location so that reading the plugin file will fail

with open(config.CFG_DIR, 'w') as f:
f.write("test")

config2 = ph.PluginConfig.load()

Expand Down

0 comments on commit 6ea3143

Please sign in to comment.