Skip to content

Save SVG test directly to file instead of its name. #7668

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

Merged
merged 1 commit into from
Dec 23, 2016

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Dec 22, 2016

Windows doesn't like opening files twice, so this needs to save to the file name outside the context (after it's been closed), or simply write to the file object directly. There doesn't seem to be any pressing need to use the file name, so just use the file object.

Hopefully, this will fix AppVeyor.

Windows doesn't like opening files twice, so this needs to save to the
file name _outside_ the context (after it's been closed), or simply
write to the file object directly. There doesn't seem to be any pressing
need to use the file name, so just use the file object.
@QuLogic QuLogic added this to the 2.1 (next point release) milestone Dec 22, 2016
@QuLogic
Copy link
Member Author

QuLogic commented Dec 22, 2016

Not sure why this didn't fail in #6428 originally, but the timing seems close enough.

@QuLogic QuLogic requested review from jkseppan and Kojoley December 22, 2016 23:17
@codecov-io
Copy link

Current coverage is 62.07% (diff: 100%)

Merging #7668 into master will decrease coverage by 4.50%

@@             master      #7668   diff @@
==========================================
  Files           109        174     +65   
  Lines         46633      56007   +9374   
  Methods           0          0           
  Messages          0          0           
  Branches          0          0           
==========================================
+ Hits          31049      34765   +3716   
- Misses        15584      21242   +5658   
  Partials          0          0           

Powered by Codecov. Last update 7131876...2679ddd

@QuLogic
Copy link
Member Author

QuLogic commented Dec 23, 2016

Yay, it passed!

@tacaswell tacaswell merged commit 8b80068 into matplotlib:master Dec 23, 2016
@QuLogic QuLogic deleted the fix-svg-test-windows branch December 23, 2016 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants