aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBruce Yinhe <[email protected]>2014-07-09 11:27:22 +0200
committerBruce Yinhe <[email protected]>2014-07-09 11:27:22 +0200
commit61215c1c5ca8a2f2ca9972d1a18f3d8d2d305223 (patch)
tree5ac96879cbb347b24dd7ea4d92c8796ddab461a2 /lib
parentad8f7ad2803df5b5670a146f6b971ba69d9cfd8e (diff)
parent2c7c3230ad2f759592308d5a5210c60bc39b3dd6 (diff)
downloadotp-61215c1c5ca8a2f2ca9972d1a18f3d8d2d305223.tar.gz
otp-61215c1c5ca8a2f2ca9972d1a18f3d8d2d305223.tar.bz2
otp-61215c1c5ca8a2f2ca9972d1a18f3d8d2d305223.zip
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r--lib/eunit/src/eunit_data.erl9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/eunit/src/eunit_data.erl b/lib/eunit/src/eunit_data.erl
index 0350f9bf6e..cbbc6fbc15 100644
--- a/lib/eunit/src/eunit_data.erl
+++ b/lib/eunit/src/eunit_data.erl
@@ -440,13 +440,8 @@ parse_function({M, F}) when is_atom(M), is_atom(F) ->
parse_function(F) ->
bad_test(F).
-check_arity(F, N, T) when is_function(F) ->
- case erlang:fun_info(F, arity) of
- {arity, N} ->
- ok;
- _ ->
- bad_test(T)
- end;
+check_arity(F, N, _) when is_function(F, N) ->
+ ok;
check_arity(_, _, T) ->
bad_test(T).