[RTEMS Project] #4692: Python 3.8 introduces new warning about using operator "is" with a literal

RTEMS trac trac at rtems.org
Mon Aug 1 15:50:29 UTC 2022


#4692: Python 3.8 introduces new warning about using operator "is" with a literal
-----------------------------+------------------------
  Reporter:  Konrad Schwarz  |      Owner:  joel@…
      Type:  enhancement     |     Status:  new
  Priority:  normal          |  Milestone:  5.1
 Component:  test            |    Version:  5
  Severity:  normal          |   Keywords:  Python 3.8
Blocked By:                  |   Blocking:
-----------------------------+------------------------
 Python 3.8 introduces a new warning: using the "is" operator as an
 equality operation is incorrect (although it works by chance on CPython).
 To compare for equality, the "==" operator must be used.

 Warnings popped up when I called rtems-tester.

 Attached please find patches for this case.

--
Ticket URL: <http://devel.rtems.org/ticket/4692>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list