File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ setUp () {
21
21
}
22
22
23
23
test_tempfile () {
24
+ if [ " $( uname) " = " Darwin" ]; then
25
+ # macOS doesn't seem to allow controlling where mktemp creates
26
+ # the output files
27
+ return 0
28
+ fi
24
29
filename=$( virtualenvwrapper_tempfile hook)
25
30
assertTrue " Filename is empty" " [ ! -z \" $filename \" ]"
26
31
assertTrue " File doesn't exist" " [ -f \" $filename \" ]"
@@ -52,6 +57,11 @@ test_bad_mktemp() {
52
57
}
53
58
54
59
test_no_such_tmpdir () {
60
+ if [ " $( uname) " = " Darwin" ]; then
61
+ # macOS doesn't seem to allow controlling where mktemp creates
62
+ # the output files
63
+ return 0
64
+ fi
55
65
old_tmpdir=" $TMPDIR "
56
66
export TMPDIR=" $TMPDIR /does-not-exist"
57
67
virtualenvwrapper_run_hook " initialize" > /dev/null 2>&1
@@ -61,6 +71,11 @@ test_no_such_tmpdir () {
61
71
}
62
72
63
73
test_tmpdir_not_writable () {
74
+ if [ " $( uname) " = " Darwin" ]; then
75
+ # macOS doesn't seem to allow controlling where mktemp creates
76
+ # the output files
77
+ return 0
78
+ fi
64
79
old_tmpdir=" $TMPDIR "
65
80
export TMPDIR=" $TMPDIR /cannot-write"
66
81
mkdir " $TMPDIR "
You can’t perform that action at this time.
0 commit comments