fix: resolve NamedTemporaryFile permission errors on Windows in tests#485
fix: resolve NamedTemporaryFile permission errors on Windows in tests#485cffls merged 2 commits intoPython-Cardano:mainfrom
Conversation
Fix: Save major_decoders[4] before patching, then delegate to that saved reference instead of calling self.decode_array(). This breaks the recursion loop entirely.
Fix: Use delete=False so the lock is released immediately, then manually delete the file with os.unlink() in a finally block. |
I am fine with the changes for the temp file usage though. |
Oh, thanks for the clarification, you're right that self.decode_array(subtype) resolves to the unpatched class method since we only patched the major_decoders dict and not the class itself, so saving the explicit reference is indeed redundant. I've reverted those changes. The NamedTemporaryFile fixes I've kept as-is. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #485 +/- ##
==========================================
+ Coverage 90.57% 90.60% +0.03%
==========================================
Files 34 34
Lines 5154 5154
Branches 781 781
==========================================
+ Hits 4668 4670 +2
+ Misses 306 305 -1
+ Partials 180 179 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.