compare singletons by identity not equality (closes #16712)
Patch from Serhiy Storchaka.
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index 28f0a2d..f334865 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -736,7 +736,7 @@
msg: Optional message to use on failure instead of a list of
differences.
"""
- if seq_type != None:
+ if seq_type is not None:
seq_type_name = seq_type.__name__
if not isinstance(seq1, seq_type):
raise self.failureException('First sequence is not a %s: %s'