Skip to content

Commit

Permalink
Remove check for __STACKTRACE__ support (#200)
Browse files Browse the repository at this point in the history
StreamData relies on Elixir 1.12 now, so this code is no longer needed.
  • Loading branch information
davydog187 authored Oct 18, 2024
1 parent 7194d96 commit 6cccc1e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/ex_unit_properties.ex
Original file line number Diff line number Diff line change
Expand Up @@ -516,14 +516,6 @@ defmodule ExUnitProperties do
defp compile_check_all(clauses_and_options, body) do
{clauses, options} = split_clauses_and_options(clauses_and_options)

# TODO: remove when we depend on Elixir ~> 1.7.
stacktrace_call =
if Version.match?(System.version(), "~> 1.7") do
quote do: __STACKTRACE__
else
quote do: System.stacktrace()
end

quote do
options = unquote(options)

Expand Down Expand Up @@ -561,7 +553,7 @@ defmodule ExUnitProperties do
exception ->
result = %{
exception: exception,
stacktrace: unquote(stacktrace_call),
stacktrace: __STACKTRACE__,
generated_values: var!(generated_values, unquote(__MODULE__))
}

Expand Down

0 comments on commit 6cccc1e

Please sign in to comment.