Giter Club home page Giter Club logo

Comments (5)

ping avatar ping commented on June 11, 2024

Were you able to execute run_tests.sh on Windows?

The rename seems to have failed because ''tests/data/downloads/Ceremonies For Christmas - Robert Herrick\Ceremonies For Christmas - Robert Herrick.mp3'' already exists. I'm guessing this was remnant output from a previous test that was not properly cleared.

from odmpy.

ping avatar ping commented on June 11, 2024

Switching over to os.replace() seems a fairly minor change so I've gone ahead and done that on the master branch.

from odmpy.

jvandervort avatar jvandervort commented on June 11, 2024

Yes, I ran the tests using git bash on windows, the tests with a basic charset usage pass fine, but the full UTF-8 tests fail. On windows the default charset is cp1252 it is dies on the extended characters, and I can't figure out where the windows 'default' encoding is applied when running the tests.

And yes, exactly that -above-. The remnant of the previous merge test causes the second one to fail on windows.

# download + merge into mp3
  rm -rf "$TEST_DOWNLOAD_DIR" && mkdir -p "$TEST_DOWNLOAD_DIR"
  python -m odmpy dl "$TEST_DATA_DIR/$TEST_ODM" -d "$TEST_DOWNLOAD_DIR" -m --hideprogress > /dev/null
  python -m unittest -v tests.OdmpyTests.test_download_2
  # download + merge into m4b
  python -m odmpy dl "$TEST_DATA_DIR/$TEST_ODM" -d "$TEST_DOWNLOAD_DIR" -m --mergeformat m4b --hideprogress > /dev/null
  python -m unittest -v tests.OdmpyTests.test_download_3

from odmpy.

jvandervort avatar jvandervort commented on June 11, 2024

not sure what your supported python versions are, but os.replace is 3.3+
you could delete if exists before os.rename if you wanted to keep it.

from odmpy.

ping avatar ping commented on June 11, 2024

not sure what your supported python versions are, but os.replace is 3.3+ you could delete if exists before os.rename if you wanted to keep it.

Python support is >=3.7 so I think it should be fine. Thanks for the report.

from odmpy.

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.