Skip to content

SyntaxWarning: "is not" with a literal. Did you mean "!="? #248

@sun1ch

Description

@sun1ch

I'm trying to run

$ python3 contemplate_koans.py
/home/sashka/python_koans/koans/about_none.py:50: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  self.assertEqual(__, None is not 0)

Thinking AboutAsserts
  test_assert_truth has damaged your karma.

You have not yet reached enlightenment ...
  AssertionError: False is not true

Please meditate on the following code:
  File "/home/sashka/python_koans/koans/about_asserts.py", line 17, in test_assert_truth
    self.assertTrue(False) # This should be True


You have completed 0 (0 %) koans and 0 (out of 37) lessons.
You are now 304 koans and 37 lessons away from reaching enlightenment.

Beautiful is better than ugly.

My python version is 3.9.5 on Ubuntu 21.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions