-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use generic interface instead of accessing fields #19
Conversation
....since not all IOs have a lock field...
Seems like the right thing to do, but I'm not sure how to fix the tests like this that are breaking PNGFiles.jl/test/test_pngsuite.jl Line 66 in 249d996
|
Codecov Report
@@ Coverage Diff @@
## master #19 +/- ##
==========================================
- Coverage 73.41% 73.03% -0.39%
==========================================
Files 4 4
Lines 331 330 -1
==========================================
- Hits 243 241 -2
- Misses 88 89 +1
Continue to review full report at Codecov.
|
Fixed! |
Awesome, thanks! |
|
||
maybe_lock(f, io::IO) = lock(f, io) | ||
# IOStream doesn't support locking... | ||
maybe_lock(f, io::IOStream) = f() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the report in JuliaImages/Images.jl#912 (comment)
It looks like IOBuffer
should also be included as a special case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably? I guess you could add that to #21
....since not all IOs have a lock field...