commit 47e157ee00f7b2e6782faa9828a06d5218dfb29d from: Jelmer Vernooij date: Wed Aug 09 19:35:40 2023 UTC Fix new flake errors commit - a5e47fe514a610305cc713d8db041054887744be commit + 47e157ee00f7b2e6782faa9828a06d5218dfb29d blob - d3b2e88d3d449b262ded4588be5c9d1d79a9327e blob + ff5acb5f1c9aa30f1b7df749037340d67de21032 --- dulwich/objects.py +++ dulwich/objects.py @@ -141,7 +141,7 @@ def hex_to_filename(path, hex): # os.path.join accepts bytes or unicode, but all args must be of the same # type. Make sure that hex which is expected to be bytes, is the same type # as path. - if type(path) != type(hex) and getattr(path, "encode", None) is not None: + if type(path) is not type(hex) and getattr(path, "encode", None) is not None: hex = hex.decode("ascii") dir = hex[:2] file = hex[2:] blob - a50e46458e3f145a0786fbe269a83ff49620f67e blob + 253989551f98928a3338363e87522d7de4703416 --- dulwich/tests/test_client.py +++ dulwich/tests/test_client.py @@ -1538,7 +1538,7 @@ class PLinkSSHVendorTests(TestCase): ) for w in warnings_list: - if type(w) == type(expected_warning) and w.args == expected_warning.args: + if type(w) is type(expected_warning) and w.args == expected_warning.args: break else: raise AssertionError( @@ -1583,7 +1583,7 @@ class PLinkSSHVendorTests(TestCase): ) for w in warnings_list: - if type(w) == type(expected_warning) and w.args == expected_warning.args: + if type(w) is type(expected_warning) and w.args == expected_warning.args: break else: raise AssertionError( blob - fbe6adb61368d082ee131ac524c1516887af752f blob + c19fcc1da91f92c7d962e83576465863b11716d9 --- dulwich/tests/test_repository.py +++ dulwich/tests/test_repository.py @@ -842,7 +842,7 @@ exit 1 "non-zero status 1", ) for w in warnings_list: - if type(w) == type(expected_warning) and w.args == expected_warning.args: + if type(w) is type(expected_warning) and w.args == expected_warning.args: break else: raise AssertionError(