Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pkgs/cold-store-reaper/tests/test_cold_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -3220,9 +3220,6 @@ def test_sync_loop_non_object_body_raises_cold_store_error(self):
self.store.sync_manifest()


if __name__ == "__main__":
unittest.main(verbosity=2)


class TestResumableUploadStalls(ColdStoreTestBase):
"""#2797: a 308 whose Range stops advancing must not loop forever,
Expand Down Expand Up @@ -3287,3 +3284,7 @@ def advancing(n, h, d):
self.assertEqual(result, "file-x")
starts = [int(p.split(" ")[1].split("-")[0]) for p in puts]
self.assertEqual(starts, [0, 100, 200, 300, 400, 500, 600, 700, 800, 900])


if __name__ == "__main__":
unittest.main(verbosity=2)
7 changes: 4 additions & 3 deletions scripts/tests/test_update_nixpkgs_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,6 @@ def test_pkgs_id_copy(self):
self._check_copy("pkgs/id", COPIES["pkgs/id"])


if __name__ == "__main__":
unittest.main()

import contextlib
import http.server
import threading
Expand Down Expand Up @@ -678,3 +675,7 @@ def test_verification_stays_on_in_both_copies(self):
ctx = mod["https_context"]()
self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
self.assertTrue(ctx.check_hostname)


if __name__ == "__main__":
unittest.main()