GithubHelp home page GithubHelp logo

Comments (3)

micahcochran avatar micahcochran commented on July 28, 2024

On Python 3.4.3, doctest seems to not work very well at all.

1 items had failures:
  68 of 140 in README.txt
140 tests in 1 items.
72 passed and 68 failed.
***Test Failed*** 68 failures.

It seems that the criteria for "Expect nothing" has changed.

On Python 2.7 the testing is almost 100%.

EDIT: Using dos2unix to convert README.txt makes the tests work on Linux.

from pyshp.

micahcochran avatar micahcochran commented on July 28, 2024

Here are instructions to run the tests.

  1. Download pyshp's zip file and uncompress. And change directory into the pyshp/ folder.

  2. Extra step for a Linux box, convert the README.txt by running
    $ dos2unix README.txt. (Before conversion $ file README.txt will report the file as "README.txt: ASCII text, with CRLF line terminators", after conversion it reports "README.txt: ASCII text")

  3. Run tests from the pyshp/ folder. This folder contains the README.txt and the blockgroups shapefile that are required for testing. These files are NOT installed with pyshp.

    a. Run from prompt:
    $ python shapefile.py

    b. Run from python console:

>>> import shapefile
>>> shapefile.test()

I'll do a PR to add this to the README, hopefully soon.

from pyshp.

micahcochran avatar micahcochran commented on July 28, 2024

Fixed in 1.2.5 release.

from pyshp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.