Skip to content

Commit e811e7b

Browse files
committed
Fix test_venv_info: deactivate before checking inactive state
1 parent 79f24e5 commit e811e7b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/py_venv_SUITE.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ test_venv_info(Config) ->
223223
TempDir = ?config(temp_dir, Config),
224224
VenvPath = filename:join(TempDir, "venv"),
225225

226+
%% Ensure no venv is active from previous tests
227+
py:deactivate_venv(),
228+
226229
%% Before activation, should be inactive
227230
{ok, Info1} = py:venv_info(),
228231
false = maps:get(<<"active">>, Info1),

0 commit comments

Comments
 (0)