File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ defmodule Mix.Tasks.Escript.Build do
286
286
quote do
287
287
erl_version = :erlang . system_info ( :otp_release )
288
288
case :string . to_integer ( erl_version ) do
289
- { num , _ } when is_integer ( num ) and num >= 17 -> nil
289
+ { num , _ } when num >= 17 -> nil
290
290
_ ->
291
291
io_error [ "Incompatible Erlang/OTP release: " , erl_version ,
292
292
".\n This escript requires at least Erlang/OTP 17.0.\n " ]
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ defmodule MixTest.Case do
83
83
def in_fixture ( which , tmp , function ) do
84
84
src = fixture_path ( which )
85
85
dest = tmp_path ( tmp )
86
+ flag = String . to_char_list ( tmp_path )
86
87
87
88
File . rm_rf! ( dest )
88
89
File . mkdir_p! ( dest )
@@ -95,7 +96,12 @@ defmodule MixTest.Case do
95
96
File . cd! dest , function
96
97
after
97
98
:code . set_path ( get_path )
98
- for { mod , :in_memory } <- :code . all_loaded -- previous , do: purge [ mod ]
99
+
100
+ for { mod , file } <- :code . all_loaded -- previous ,
101
+ file == :in_memory or
102
+ ( is_list ( file ) and :lists . prefix ( flag , file ) ) do
103
+ purge [ mod ]
104
+ end
99
105
end
100
106
end
101
107
You can’t perform that action at this time.
0 commit comments