Skip to content

Commit

Permalink
Skip startup permissions test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dakoop committed Jul 18, 2014
1 parent ccae647 commit dc26500
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vistrails/core/startup.py
Expand Up @@ -44,7 +44,7 @@
import vistrails.db.services.io
import vistrails.core.packagemanager
from vistrails.core.system import get_elementtree_library, \
get_vistrails_directory
get_vistrails_directory, systemType
import vistrails.core.utils
from vistrails.core.utils import version_string_to_list

Expand Down Expand Up @@ -998,14 +998,15 @@ def test_cannot_create(self):
os.unlink(fname)

def test_permissions(self):
if systemType in ['Windows', 'Microsoft']:
self.skipTest("chmod on Windows is limited")
dir_name = tempfile.mkdtemp()
config = ConfigurationObject(dotVistrails=dir_name)
try:
os.chmod(dir_name, stat.S_IRUSR)
with self.assertRaises(IOError):
startup = VistrailsStartup(config, None)
finally:
self.close_logger()
os.chmod(dir_name, stat.S_IRWXU)
shutil.rmtree(dir_name)

Expand Down

0 comments on commit dc26500

Please sign in to comment.