[devtools] "Keep" some temporary files/dirs around to help with debugging
authorRémi Cardona <remi.cardona@logilab.fr>
Mon, 01 Sep 2014 10:22:46 +0200
changeset 9993 1ced03652d5e
parent 9992 3905682ece11
child 9994 12a97d1c6015
[devtools] "Keep" some temporary files/dirs around to help with debugging The whole QUnitTestCase runs with an @with_tempdir so it's redundant anyway.
devtools/qunit.py
--- a/devtools/qunit.py	Fri Aug 01 19:28:44 2014 +0200
+++ b/devtools/qunit.py	Mon Sep 01 10:22:46 2014 +0200
@@ -84,7 +84,6 @@
 
     def __del__(self):
         self.stop()
-        rmtree(self._profile_dir)
 
 
 class QUnitTestCase(CubicWebServerTC):
@@ -140,7 +139,7 @@
 
         # generate html test file
         jquery_dir = 'file://' + self.config.locate_resource('jquery.js')[0]
-        html_test_file = NamedTemporaryFile(suffix='.html')
+        html_test_file = NamedTemporaryFile(suffix='.html', delete=False)
         html_test_file.write(make_qunit_html(test_file, depends,
                              base_url=self.config['base-url'],
                              web_data_path=jquery_dir))