You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2005/07/01 20:29:15 UTC

svn commit: r208780 - /gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py

Author: leosimons
Date: Fri Jul  1 11:29:13 2005
New Revision: 208780

URL: http://svn.apache.org/viewcvs?rev=208780&view=rev
Log:
Close the script file we write under windows hoping this allows us to delete things later. Error reported by Justin Merz under

> WinXP Running:
> Cygwin
> java1.4
> python2.4
> MySQL4.1

Error as follows:

> Traceback (most recent call last):
>   File c:python24Libsite-packagespmock.py, line 507, in _auto_verified_test
>     self._real_test_method()
>   File C:cygwinhomeBigMerzgump3pygumppythongumptesttestPluginBuilder.py, line 77, in test_do_script
>     rmtree(basedir)
>   File c:python24libshutil.py, line 159, in rmtree
>     rmtree(fullname, ignore_errors, onerror)
>   File c:python24libshutil.py, line 159, in rmtree
>     rmtree(fullname, ignore_errors, onerror)
>   File c:python24libshutil.py, line 159, in rmtree
>     rmtree(fullname, ignore_errors, onerror)
>   File c:python24libshutil.py, line 164, in rmtree
>     onerror(os.remove, fullname, sys.exc_info())
>   File c:python24libshutil.py, line 162, in rmtree
>     os.remove(fullname)
> OSError: [Errno 13] Permission denied: 'c:\docume~1\bigmer~1\locals~1\temp\tmpyuuuwl\w\r\m\dobuild.bat'


Modified:
    gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py

Modified: gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py?rev=208780&r1=208779&r2=208780&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py Fri Jul  1 11:29:13 2005
@@ -54,6 +54,7 @@
                 scriptfile.write("""echo off
 echo RESULT
 """)
+                scriptfile.close()
             else:
                 scriptpath = join(mpath,"dobuild")
                 scriptfile = open(scriptpath, mode='w')