Modified the state.load() and state.save() unit tests to use a tmp file descriptor.
Currently these functions only allow a string file name and don't handle file descriptors, but this will be changed.
Authored by: bugman 2007-11-22
Parent: [r3792]
Child: [r3794]