[PR #403] Fix and re-enable tests #1013

Open
opened 2026-01-29 22:18:36 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/403

State: closed
Merged: Yes


Fix two problems with the test harness

  1. Give each test its own unique scratch space to prevent conflicts between tests

As part of having a unique scratch space, we can remove the ResetScratch() method and make the tests simpler and more resilient.

  1. Avoid leaking file handles by forcing a garbage collection prior to cleanup for each test
**Original Pull Request:** https://github.com/adamhathcock/sharpcompress/pull/403 **State:** closed **Merged:** Yes --- Fix two problems with the test harness 1. Give each test its own unique scratch space to prevent conflicts between tests As part of having a unique scratch space, we can remove the `ResetScratch()` method and make the tests simpler and more resilient. 2. Avoid leaking file handles by forcing a garbage collection prior to cleanup for each test
claunia added the pull-request label 2026-01-29 22:18:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1013