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 e1bd06a commit 26e86d5Copy full SHA for 26e86d5
2 files changed
test/data/.gitignore
@@ -6,4 +6,5 @@
6
# and we re-ignore hpp and exe files
7
*.hpp
8
*.exe
9
-!return_one.hpp
+*.*bak
10
+!return_one.hpp
test/test_model.py
@@ -406,6 +406,13 @@ def test_model_format_deprecations(self):
406
self.assertNotIn("<-", formatted)
407
self.assertEqual(formatted.count('('), 0)
408
409
+ shutil.copy(stan, stan + '.testbak')
410
+ try:
411
+ model.format(overwrite_file=True, canonicalize=True)
412
+ self.assertTrue(os.path.exists(stan + '.bak'))
413
+ finally:
414
+ shutil.copy(stan + '.testbak', stan)
415
+
416
@pytest.mark.skipif(
417
cmdstan_version_before(2, 29), reason='Options only available later'
418
)
0 commit comments