Changeset 7454


Ignore:
Timestamp:
Sep 1, 2009, 11:13:00 AM (14 years ago)
Author:
ole
Message:

Fixed NetCDF large file support test up so that temporary and unique filename is used. Not doing this caused a problem with parallel tests trying to remove
the same filename multiple times.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/config.py

    r7302 r7454  
    206206# whether Scientific.IO supports large NetCDF files
    207207s = """
    208 import os
     208import os, tempfile
    209209from Scientific.IO.NetCDF import NetCDFFile
    210 fid = NetCDFFile('tmpfilenamexx', 'wl')
     210
     211filename = tempfile.mktemp('.nc')
     212
     213fid = NetCDFFile(filename, 'wl')
    211214fid.close()
    212 os.remove('tmpfilenamexx')
     215os.remove(filename)
    213216"""
    214217
Note: See TracChangeset for help on using the changeset viewer.