MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / test_sorted

Method test_sorted

tests_python/test_safe_repr.py:398–407  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

396 self.assert_unchanged({}, "{}")
397
398 def test_sorted(self):
399 # Ensure dict keys are sorted
400 d1 = {}
401 d1["c"] = None
402 d1["b"] = None
403 d1["a"] = None
404 if IS_PY36_OR_GREATER:
405 self.assert_saferepr(d1, "{'c': None, 'b': None, 'a': None}")
406 else:
407 self.assert_saferepr(d1, "{'a': None, 'b': None, 'c': None}")
408
409 @pytest.mark.skipif(sys.version_info < (3, 0), reason="Py3 specific test")
410 def test_unsortable_keys(self):

Callers

nothing calls this directly

Calls 1

assert_safereprMethod · 0.80

Tested by

no test coverage detected