question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Travis CI: issue with python 3.5 and doctest

See original GitHub issue

Travis CI with python 3.5 returns different results than expected in doctest. Here is an example :

        >>> df = ks.DataFrame({'name': ['Raphael', 'Donatello'],
        ...                    'mask': ['red', 'purple'],
        ...                    'weapon': ['sai', 'bo staff']})
        >>> df.to_csv(index=False)
Expected:
    'name,mask,weapon\nRaphael,red,sai\nDonatello,purple,bo staff\n'
Got:
    'mask,name,weapon\nred,Raphael,sai\npurple,Donatello,bo staff\n'

I check doctest with Pandas 0.23.4 and python 3.6 locally and everything works well.

We had this issue in these PRs: #239 #238 #267

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ueshincommented, May 9, 2019

Seems columns=[...] works:

df = ks.DataFrame({ ... }, columns=['name', 'mask', 'weapon'])
1reaction
arisehkawamuracommented, May 9, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Extensive Python Testing on Travis CI
Let me briefly introduce you to basic Python testing with Travis. Feel free to skip ahead if you are familiar with the topic....
Read more >
Issue 38339: [3.5] The doc job of Travis CI fails on Python 3.5
Example: https://travis-ci.org/python/cpython/jobs/590339147 $ python ... This issue prevents to merge the following 3.5 pull requests: ...
Read more >
6. Changelog — natsort 8.0.0 documentation - Read the Docs
Support for Python 3.4 and Python 3.5 ... Use GitHub Actions instead of Travis-CI (issue #125) ... Enable Python 3.7 support in Travis-CI...
Read more >
pretext - PyPI
:target: https://travis-ci.org/moreati/b-prefix-all-the-doctests. This package makes it easy to write doctests that involve strings, and
Read more >
.travis.yml · pillar-python-sdk
language: python. # Python 3.5 specified to make tox environment 'py35' work. # See: https://github.com/travis-ci/travis-ci/issues/4794. python: - 3.5.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found