cekit / behave-test-steps

MIT License
0 stars 21 forks source link

Adjust Python for comparisons with literals #36

Closed jmtd closed 2 years ago

jmtd commented 2 years ago

This removes some warnings that modern Python's emit when using 'is' and 'is not' in a comparison with a literal.

Signed-off-by: Jonathan Dowland jdowland@redhat.com

jmtd commented 2 years ago

Hi @goldmann wdyt?

jmtd commented 2 years ago

This warning appears at some point between Python 3.6 (which does not warn) and Python 3.8. Here's an example of the warning printed in GitHub CI with Python 3.8: https://github.com/jmtd/behave-test-steps/runs/6624410321?check_suite_focus=true#step:8:162

rnc commented 2 years ago

@jmtd Can you rebase please?