Giter VIP home page Giter VIP logo

Comments (5)

gi0baro avatar gi0baro commented on August 26, 2024

Which is the python version you're using?

from pydal.

kirsn avatar kirsn commented on August 26, 2024

Earlier on: Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
and confirmed recently on: Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32

from pydal.

kirsn avatar kirsn commented on August 26, 2024

Took the current pydal repo, and repeated the steps posted above.

D:\code\git\pydal [master]> git log
commit 39d7df7538199473458a0d92adbbcc0747e3bf01
Merge: 338b792 7e065cc
Author: Giovanni Barillari <[email protected]>
Date:   Fri Apr 3 00:51:12 2015 +0200

    Merge pull request #122 from niphlod/fix/README2

    fix badges from #121

The results are identical - tests do not pass within Eclipse - except for the last summary lines


----------------------------------------------------------------------
Ran 104 tests in 2.156s

FAILED (errors=5, skipped=4)

When run from the command prompt, it seems to works though. The number of tests are 60

D:\code\git\pydal [master]> python -m unittest tests
Testing against sqlite engine (sqlite:memory)
........s...................................................
----------------------------------------------------------------------
Ran 60 tests in 0.797s

OK (skipped=1)

Not sure what to make of this:

  • Should this work from within Eclipse at all?
  • Why the discrepancy in the number of tests being run - Eclipse is 104, Cmd is 60?

from pydal.

niphlod avatar niphlod commented on August 26, 2024

eclipse is definitely doing something wrong.

from pydal.

kirsn avatar kirsn commented on August 26, 2024

If I select the /pydal/tests/__init__.py and "Run As > Python unit-test", from within Eclipse, then the output matches that of the command line, and all tests run and pass.

You are right; it is probably an issue with the way Pydev runs these tests. Will close this issue.

from pydal.

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.