summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-02-23 10:58:05 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-26 15:10:09 -0500
commit972bcf3a1971691ec809452322404ce8f65ad721 (patch)
tree7a35b5181c621e8d62a19bcd51a7b00872576939
parente0d09db377bcb3d4caef2abe9db0cac36811d740 (diff)
downloadhaskell-972bcf3a1971691ec809452322404ce8f65ad721.tar.gz
testsuite: Fix symlink test
Needs to `write` bytes, not str.
-rw-r--r--testsuite/driver/testutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py
index 4c2f3ffdee..a5b20dfa97 100644
--- a/testsuite/driver/testutil.py
+++ b/testsuite/driver/testutil.py
@@ -92,7 +92,7 @@ def symlinks_work() -> bool:
works = False
with tempfile.NamedTemporaryFile() as tmp:
try:
- tmp.write('hello')
+ tmp.write(b'hello')
os.symlink(tmp.name, '__symlink-test')
works = True
except OSError as e: