Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
TST: splitlines in rec2txt test #6423
Conversation
tacaswell
added the
needs_review
label
May 14, 2016
|
attn @dopplershift I think this is an equivalent test . |
|
@janschulz Can you help out with the windows issue here? I do not have a system to test on and debugging via appveyor seems maddeningly painful! |
|
|
|
In windows this seems to output one windows = [' x y s s2', ' 1.000 2 foo bing ']
truth = [' x y s s2', ' 1.000 2 foo bing '] |
|
Sorry, had order flipped, windows adds an extra space. |
|
@dopplershift I think there was a bug in computing the width of the string columns which for some reason was behaving differently on windows/linux. |
tacaswell
added this to the
2.0 (style change major release)
milestone
May 16, 2016
|
I have a look... Looks like there are at least two problems: The one where the link step can't find png.lib and the one where there is a space difference. Re the png one: it seems that conda-forge recently added a libpng (and that one is installed), could be that there is a difference to the official one? https://github.com/conda-forge/libpng-feedstock/commits/master (cc: @ocefpaf) |
|
I think I have the space issue fixed |
dopplershift
and 2 others
commented on an outdated diff
May 16, 2016
| @@ -3188,9 +3188,7 @@ def get_justify(colname, column, precision): | ||
| ntype = column.dtype | ||
| if np.issubdtype(ntype, str) or np.issubdtype(ntype, bytes): | ||
| - # The division below handles unicode stored in array, which could | ||
| - # have 4 bytes per char | ||
| - length = max(len(colname), column.itemsize // column[0].itemsize) | ||
| + length = max(len(colname), len(column[0])) |
dopplershift
Contributor
|
|
And tests are passing, but it is dying as while trying to build the conda package |
|
ok, this is now passing (except for a down-load error on one of the appveyor tests). I had to turn off the conda package building which is less than great, but makes the test useful again for code review. |
jenshnielsen
merged commit 326cc05
into matplotlib:master
May 17, 2016
mdboom
removed the
needs_review
label
May 17, 2016
tacaswell
deleted the
tacaswell:tst_fix_windows_print_test branch
May 22, 2016
tacaswell
referenced
this pull request
May 22, 2016
Open
re-enable building conda package artifacts on appveyor / fix conda recipe #6460
|
Is this going to be backported? matplotlib 1.5.2rc1 on Windows fails one test:
|
|
Yes, sorry this got lost in the appveyor related issues. On Sun, May 22, 2016, 20:12 Christoph Gohlke notifications@github.com
|
tacaswell
added a commit
that referenced
this pull request
May 23, 2016
|
|
jenshnielsen + tacaswell |
cab8cf7
|
|
backported to v1.5.x as cab8cf7 |
tacaswell commentedMay 14, 2016
On windows the output has '\r\n' instead of '\n' for new
lines.
If this passes I plan to self-merge to un-break appveyor