From 2a37a6ea8f4f74c9906492d7ab5146ed06040798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Samson?= Date: Sat, 23 May 2026 11:48:51 +0200 Subject: [PATCH] Fix spec of ex_unit capture_log options Passing `formatter: nil` was never supported and would crash in https://github.com/elixir-lang/elixir/blob/274dbb6e10ab6e47cf93cc5d576c9a22180b1d2c/lib/ex_unit/lib/ex_unit/capture_server.ex#L79 --- lib/ex_unit/lib/ex_unit/capture_log.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ex_unit/lib/ex_unit/capture_log.ex b/lib/ex_unit/lib/ex_unit/capture_log.ex index 1a7b1288df6..5955583cb15 100644 --- a/lib/ex_unit/lib/ex_unit/capture_log.ex +++ b/lib/ex_unit/lib/ex_unit/capture_log.ex @@ -45,7 +45,7 @@ defmodule ExUnit.CaptureLog do @type capture_log_opts :: [ {:level, Logger.level() | nil} - | {:formatter, {module(), term()} | nil} + | {:formatter, {module(), term()}} ] @doc """