close OPC package before assertion, otherwise the test fails on Win7 (unix-based systems always pass)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@982911 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2010-08-06 09:03:32 +00:00
parent 140e11364b
commit c9a7354786
1 changed files with 2 additions and 1 deletions

View File

@ -470,7 +470,8 @@ public final class TestPackage extends TestCase {
p.save(tempFile);
fail("You shouldn't be able to call save(File) to overwrite the current file");
} catch(InvalidOperationException e) {}
p.close();
// Delete it
assertTrue(tempFile.delete());