Git Product home page Git Product logo

pyam232x's People

Contributors

ktooi avatar

Watchers

 avatar

pyam232x's Issues

doctest が通らない

doctest を通す方法を模索する。

現状、 workflow で実行される doctest が fail してしまう。

UNEXPECTED EXCEPTION: FileNotFoundError(2, 'No such file or directory') が出ているので、恐らく /dev/i2c-1 が存在していないのではないかと推察する。
実行環境に因るところだと思われるが、対応を検討する。

■ FYI

失敗した job のログは下記。

============================= test session starts ==============================
platform linux -- Python 3.7.9, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/runner/work/pyam232x/pyam232x
plugins: cov-2.11.1
collected 1 item

am232x/am232x.py F                                                       [100%]

=================================== FAILURES ===================================
________________________ [doctest] am232x.am232x.AM232x ________________________
016 
017     Examples:
018 
019         次のようにシンプルに使うことができます。
020 
021         Simple usage is as follows.
022 
023         >>> from am232x import AM232x
024         >>>
025         >>> am232x = AM232x(name="am2322")
UNEXPECTED EXCEPTION: FileNotFoundError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/doctest.py", line 1337, in __run
    compileflags, 1), test.globs)
  File "<doctest am232x.am232x.AM232x[1]>", line 1, in <module>
  File "/home/runner/work/pyam232x/pyam232x/am232x/am232x.py", line 61, in __init__
    self._i2c = smbus.SMBus(bus)
FileNotFoundError: [Errno 2] No such file or directory
/home/runner/work/pyam232x/pyam232x/am232x/am232x.py:25: UnexpectedException
- generated xml file: /home/runner/work/pyam232x/pyam232x/junit/test-results-3.7.xml -

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.