summaryrefslogtreecommitdiff
path: root/testsuite/driver/testglobals.py
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-05-27 15:07:47 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-01 06:38:26 -0400
commit4a7229ef361307e16574b85f71f473f936728890 (patch)
tree4ea56b14d558231fca3388a55cb7890805a5e978 /testsuite/driver/testglobals.py
parent15857ad856b6072d2c6a34b2bf7aa7316d7e2b12 (diff)
downloadhaskell-4a7229ef361307e16574b85f71f473f936728890.tar.gz
testsuite: Refactor ghostscript detection
Tamar reported that he saw crashes due to unhandled exceptions.
Diffstat (limited to 'testsuite/driver/testglobals.py')
-rw-r--r--testsuite/driver/testglobals.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index ceee5df9a8..e20a8329d7 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -43,7 +43,7 @@ class TestConfig:
self.summary_file = ''
# Path to Ghostscript
- self.gs = ''
+ self.gs = None # type: Optional[Path]
# Run tests requiring Haddock
self.haddock = False