Giter Site home page Giter Site logo

Comments (3)

CleanCut avatar CleanCut commented on July 26, 2024

Well, I'm not sure how it happened, but despite your which green output, your traceback output shows that you are running /usr/local/bin/green which is using /usr/local/lib/python3.4/site-packages which doesn't have numpy installed. You just need to get the right green called.

One way is you could try calling the virtualenv copy of green directly:

/home/tad/Downloads/share/husl-numpy/env/bin/green test.py

from green.

TadLeonard avatar TadLeonard commented on July 26, 2024

Thanks for the help. Yes, running env/bin/green directly works. I still don't understand why nose and py.test behave differently in my setup.

If you don't mind me asking an unrelated question here... how do I get green to run py.test/nose style tests (i.e. simple functions starting with "test_' that pass/fail via assert statements)?

from green.

CleanCut avatar CleanCut commented on July 26, 2024

@TadLeonard Green's test discovery is currently based on the built-in unittest implementation, which only looks at unittest.TestCase subclasses. @msoedov was saying just yesterday in the Gitter channel that he was going to look into adding that type of support to discovery.

If we do add support, I expect that you will most likely need to enable it explicitly via some option such as --extra-discovery. Those of us who are used to using unittest actually have non-unit-test-related functions that start with test_...

from green.

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.