mirror of https://github.com/apache/poi.git
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:
parent
3f83900581
commit
0427fc7a0f
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue