@@ -765,8 +765,8 @@ defmodule ExUnit.AssertionsTest do
765765 @ compile { :no_warn_undefined , Not.Defined }
766766
767767 test "assert raise with some other error" do
768- "This should never be tested" =
769- assert_raise ArgumentError , fn -> Not.Defined . function ( 1 , 2 , 3 ) end
768+ assert_raise ArgumentError , fn -> Not.Defined . function ( 1 , 2 , 3 ) end
769+ flunk ( "This should never be tested" )
770770 rescue
771771 error in [ ExUnit.AssertionError ] ->
772772 "Expected exception ArgumentError but got UndefinedFunctionError " <>
@@ -775,8 +775,8 @@ defmodule ExUnit.AssertionsTest do
775775 end
776776
777777 test "assert raise with some other error includes stacktrace from original error" do
778- "This should never be tested" =
779- assert_raise ArgumentError , fn -> Not.Defined . function ( 1 , 2 , 3 ) end
778+ assert_raise ArgumentError , fn -> Not.Defined . function ( 1 , 2 , 3 ) end
779+ flunk ( "This should never be tested" )
780780 rescue
781781 ExUnit.AssertionError ->
782782 [ { Not.Defined , :function , [ 1 , 2 , 3 ] , _ } | _ ] = __STACKTRACE__
@@ -1057,7 +1057,7 @@ defmodule ExUnit.AssertionsTest do
10571057 """ = Exception . message ( error )
10581058 end
10591059
1060- defp ok ( val ) , do: { :ok , val }
1061- defp error ( val ) , do: { :error , val }
1060+ defp ok ( val ) , do: Process . get ( :unused , { :ok , val } )
1061+ defp error ( val ) , do: Process . get ( :unused , { :error , val } )
10621062 defp not_equal ( left , right ) , do: left != right
10631063end
0 commit comments