cekit / behave-test-steps

MIT License
0 stars 22 forks source link

warnings about comparisons with literals #33

Closed jmtd closed 2 years ago

jmtd commented 3 years ago

These seem new! In my terminal output when running a "behave test":

2021-05-24 10:08:25,965 collector.py:41         INFO  Fetching common steps from 'https://github.com/cekit/behave-test-steps.git'.
2021-05-24 10:08:26,655 collector.py:73         INFO  Collecting finished!
steps/container.py:170: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if retcode is not 0:
steps/container_steps.py:255: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(output) is 0:
/home/jon/rh/git/images/openjdk/target/test/steps/steps.py:66: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if retcode is not 0:
/home/jon/rh/git/images/openjdk/target/test/steps/container.py:170: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if retcode is not 0:
steps/steps.py:66: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if retcode is not 0:
rnc commented 2 years ago

Fixed by #36