crops / extsdk-container

A container image that is able to setup and use an extensible sdk generated using openembedded-core.
GNU General Public License v2.0
36 stars 15 forks source link

test_dumb_init: fix syntax warning about 'is' #20

Closed moto-timo closed 2 years ago

moto-timo commented 2 years ago

Use == instead of 'is'.

Fixes:

=============================== warnings summary =============================== tests/test_dumb_init.py:29 /home/runner/work/extsdk-container/extsdk-container/tests/test_dumb_init.py:29: SyntaxWarning: "is" with a literal. Did you mean "=="? if url is "":

tests/test_dumb_init.py:34 /home/runner/work/extsdk-container/extsdk-container/tests/test_dumb_init.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="? if workdir is "":

tests/test_dumb_init.py:39 /home/runner/work/extsdk-container/extsdk-container/tests/test_dumb_init.py:39: SyntaxWarning: "is" with a literal. Did you mean "=="? if name is "":

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 7 passed, 3 warnings in 1.35s =========================

Signed-off-by: Tim Orling tim.orling@konsulko.com