MCPcopy Index your code
hub / github.com/python/cpython / assert_ne_subtest

Method assert_ne_subtest

Lib/test/test_compare.py:287–293  ·  view source on GitHub ↗
(self, a, b, comp, a_meth, b_meth)

Source from the content-addressed store, hash-verified

285 self.assertEqual(b == a, a is b)
286
287 def assert_ne_subtest(self, a, b, comp, a_meth, b_meth):
288 if a_meth is None or not {"ne", "eq"}.isdisjoint(a_meth + b_meth):
289 self.assertEqual(a != b, comp != 0)
290 self.assertEqual(b != a, comp != 0)
291 else:
292 self.assertEqual(a != b, a is not b)
293 self.assertEqual(b != a, a is not b)
294
295 def assert_lt_subtest(self, a, b, comp, a_meth, b_meth):
296 if a_meth is None or "lt" in a_meth or "gt" in b_meth:

Callers 1

assert_total_orderMethod · 0.95

Calls 2

isdisjointMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected