summary refs log tree commit diff stats
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2015-02-04 21:44:25 +0100
committerdef <dennis@felsin9.de>2015-02-04 21:44:25 +0100
commit416456cefef9120019924067adeb814b0ceaaf79 (patch)
treef79cc9a7ba643ffc33ecaf7dd2e9f0d8ec2c6980
parent0b4557b2ce6cfbf05faa2f68317983e3b5b32a84 (diff)
downloadNim-416456cefef9120019924067adeb814b0ceaaf79.tar.gz
Try to fix unittest for JS backend, still not working
-rw-r--r--lib/pure/unittest.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim
index 8dc9fe0d4..f4e42ee63 100644
--- a/lib/pure/unittest.nim
+++ b/lib/pure/unittest.nim
@@ -39,6 +39,7 @@ when declared(stdout):
 
 when not defined(ECMAScript):
   import terminal
+  system.addQuitProc(resetAttributes)
 
 type
   TestStatus* = enum OK, FAILED
@@ -234,5 +235,3 @@ if envOutLvl.len > 0:
     if $opt == envOutLvl:
       outputLevel = opt
       break
-
-system.addQuitProc(resetAttributes)