Package: cxxtest
Version: 4.4+git171022-2

Dear Maintainer,

# apt install cxxtest
[...]
Setting up python3.9 (3.9.7-4) ...
Setting up python3 (3.9.2-3) ...
running python rtupdate hooks for python3.9...
/usr/share/cxxtest/cxxtest/cxx_parser.py:2090: SyntaxWarning: "is" with a 
literal. Did you mean "=="?
  if p.type is "":
/usr/share/cxxtest/cxxtest/cxxtest_parser.py:39: SyntaxWarning: "is" with a 
literal. Did you mean "=="?
  if len(suites) is 0 and not options.root:
/usr/share/cxxtest/cxxtest/cxxtest_parser.py:236: SyntaxWarning: "is not" with 
a literal. Did you mean "!="?
  if len(suite['tests']) is not 0:
running python post-rtupdate hooks for python3.9...
Setting up python3-ply (3.11-4) ...
Setting up cxxtest (4.4+git171022-2) ...
/usr/share/cxxtest/cxxtest/cxx_parser.py:2090: SyntaxWarning: "is" with a 
literal. Did you mean "=="?
  if p.type is "":
/usr/share/cxxtest/cxxtest/cxxtest_parser.py:39: SyntaxWarning: "is" with a 
literal. Did you mean "=="?
  if len(suites) is 0 and not options.root:
/usr/share/cxxtest/cxxtest/cxxtest_parser.py:236: SyntaxWarning: "is not" with 
a literal. Did you mean "!="?
  if len(suite['tests']) is not 0:
[...]

Since Python 3.8 such tests produce these warnings.  In my opinion these
warnings are legit, even though with the current implementation the code
works correctly as-is, because the empty string and the zero integer
happen to be interned automatically.  Please consider applying a small
patch as recommended by the warnings to get rid of them and to increase
code correctness.
-- 
Thanks,
Feri.

Reply via email to