GeoscienceAustralia / eqrm

Automatically exported from code.google.com/p/eqrm
Other
5 stars 4 forks source link

test_all failing in windows with python 2.6.5 #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Ensure the version of python in your path is 2.6.5
2. Run test_all.py

What is the expected output? What do you see instead?
Log tests fail attempting to remove the temporary log files with a file in use 
error.

Note that this works with python 2.7.7 (see issue 16).

Please use labels and text to provide additional information.

Z:\georisk_models\earthquake\sandpits\ben\eqrm\trunk>python test_all.py

Testing path Z:\georisk_models\earthquake\sandpits\ben\eqrm\trunk\eqrm_code\..:

WARNING: File test_event_set_npy.py to be excluded from testing
------- Trying to compile c-extension polygon_ext.c
gcc.exe -c polygon_ext.c -I"C:\Python26\lib\site-packages\numpy\core\include"  -
I"C:\Python26\include" -o "polygon_ext.o" -Wall -O3
gcc.exe -shared polygon_ext.o  -o polygon_ext.pyd "C:\Python26\python26.dll" -lm

.......EEEE.....................................................................
................................................................................
................................................................................
................................................................................
..............................................................................
======================================================================
ERROR: test_set_log_level (test_log.Test_Log)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Z:\georisk_models\earthquake\sandpits\ben\eqrm\trunk\eqrm_code\..\eqrm_c
ode\ANUGA_utilities\test_log.py", line 47, in tearDown
    os.remove(self.logfile)
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: 'c:\\docume~1\\u78240\\locals~1\\temp\\test_log_zdf0n7.
log'

======================================================================
ERROR: test_set_log_level_conflict (test_log.Test_Log)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Z:\georisk_models\earthquake\sandpits\ben\eqrm\trunk\eqrm_code\..\eqrm_c
ode\ANUGA_utilities\test_log.py", line 47, in tearDown
    os.remove(self.logfile)
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: 'c:\\docume~1\\u78240\\locals~1\\temp\\test_log_5jsg3a.
log'

======================================================================
ERROR: test_set_log_level_no_console (test_log.Test_Log)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Z:\georisk_models\earthquake\sandpits\ben\eqrm\trunk\eqrm_code\..\eqrm_c
ode\ANUGA_utilities\test_log.py", line 47, in tearDown
    os.remove(self.logfile)
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: 'c:\\docume~1\\u78240\\locals~1\\temp\\test_log_wkwm6v.
log'

======================================================================
ERROR: test_set_log_level_no_effect (test_log.Test_Log)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Z:\georisk_models\earthquake\sandpits\ben\eqrm\trunk\eqrm_code\..\eqrm_c
ode\ANUGA_utilities\test_log.py", line 47, in tearDown
    os.remove(self.logfile)
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: 'c:\\docume~1\\u78240\\locals~1\\temp\\test_log_dhz8d_.
log'

----------------------------------------------------------------------
Ran 398 tests in 4.461s

FAILED (errors=4)

Original issue reported on code.google.com by b...@girorosso.com on 2 Mar 2012 at 1:09

GoogleCodeExporter commented 9 years ago
Since this issue only effects python2.6 on windows this problem currently will 
not be fixed.

Original comment by duncan.g...@gmail.com on 5 Mar 2012 at 12:48