We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb9e4c commit ec4915fCopy full SHA for ec4915f
1 file changed
test/test_sample.py
@@ -646,12 +646,11 @@ def test_save_csv(self):
646
with self.assertRaisesRegex(ValueError, 'cannot access csv file'):
647
bern_fit.save_csvfiles(dir=DATAFILES_PATH)
648
649
- with self.assertRaisesRegex(
650
- Exception, 'cannot save to path: '
651
- ):
652
- dir = tempfile.mkdtemp(dir=_TMPDIR)
653
- os.chmod(dir, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
654
- bern_fit.save_csvfiles(dir=dir)
+ if platform.system() != "Windows":
+ with self.assertRaisesRegex(Exception, 'cannot save to path: '):
+ dir = tempfile.mkdtemp(dir=_TMPDIR)
+ os.chmod(dir, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
+ bern_fit.save_csvfiles(dir=dir)
655
656
def test_diagnose_divergences(self):
657
exe = os.path.join(DATAFILES_PATH, 'bernoulli' + EXTENSION)
0 commit comments