Coder Social home page Coder Social logo

Comments (6)

wikier avatar wikier commented on June 15, 2024

With nosetests simply runs fine. I have no so much experience, maybe @indeyets could give some hints.

from sparqlwrapper.

indeyets avatar indeyets commented on June 15, 2024

sparqlwrapper is python2 project. python3 code is generated only during the deployment. right now, nothing was done to enable tests on python3.

This bug can be renamed to "Implement testing on python3". I didn't approach this issue, but probably some 2to3-based solution can be provided

from sparqlwrapper.

gromgull avatar gromgull commented on June 15, 2024

You can try copying the run_tests_py3 file from rdflib core, this runs 2to3 on the code, saves it in a tmp folder and runs the tests there.

Even better would be to match the valiant efforts from @joernhees and make sparqlwrapper support py2 and py3 with the same code base using six: RDFLib/rdflib#374

from sparqlwrapper.

wikier avatar wikier commented on June 15, 2024

Thanks @gromgull , I ported the run_tests_py3.sh script. The setup looks to work fine. We just have some issues with the usage of urlib2 that maybe @indeyets, who original ported the test suite to nose, could take a look.

from sparqlwrapper.

indeyets avatar indeyets commented on June 15, 2024

yup. there's some black magic in there. I'll think about it.

by the way, nosetests3 is a thing present only in debian. canonical name is nosetsts-3.4. same with 2to3 — it's better to use 2to3-3.4. we should invent a bit smarter code there:

  1. detect recent version of python and store it in var
  2. check if 2to3-$suffix and nosetests-$suffix are available

from sparqlwrapper.

indeyets avatar indeyets commented on June 15, 2024

@wikier can you assign this ticket to me? I don't have enough rights to do that myself

from sparqlwrapper.

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.