Diff
1diff --git a/autoswitch_virtualenv.plugin.zsh b/autoswitch_virtualenv.plugin.zsh
2index 029bd0db58cf70b352445f55b40d17e49d9b61f7..e4d49a0503c7640a2a54d2669fa8778d9efd20a9 100644
3--- a/autoswitch_virtualenv.plugin.zsh
4+++ b/autoswitch_virtualenv.plugin.zsh
5@@ -279,8 +279,7 @@ function _missing_error_message() {
6
7 function randstr()
8 {
9- local strlen="${1:=4}"
10- python -c "from __future__ import print_function; import string, random; print(''.join(random.choice(string.ascii_lowercase) for _ in range($strlen)))"
11+ python -c "from __future__ import print_function; import string, random; print(''.join(random.choice(string.ascii_lowercase) for _ in range(4)))"
12 }
13
14
15diff --git a/tests/test_plugin.zunit b/tests/test_plugin.zunit
16index bf08bac4484447552c82b8636ef528b09efd7b95..506a8cf7d0a00d8dc017bb8cfe39ce5c2e89047f 100644
17--- a/tests/test_plugin.zunit
18+++ b/tests/test_plugin.zunit
19@@ -68,7 +68,6 @@
20
21 # check that $(randstr n) returns a string of length n
22 assert "${#$(randstr)}" equals 4
23- assert "${#$(randstr 19)}" equals 19
24
25 assert "$(randstr)" different_to "$(randstr)"
26 }