summary refs log tree commit diff stats
path: root/tests/effects
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-07-05 19:14:18 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-07-05 19:14:18 +0200
commitae82406c8b7bd1239416b1e6caed34161c133e94 (patch)
tree54a745fbd3c659bb0bbaae1c3f3682b1ea8275b0 /tests/effects
parent0926754e68861947c67986bc9c7e0a011a58267b (diff)
downloadNim-ae82406c8b7bd1239416b1e6caed34161c133e94.tar.gz
make tests green again
Diffstat (limited to 'tests/effects')
-rw-r--r--tests/effects/teffects3.nim2
-rw-r--r--tests/effects/teffects4.nim2
-rw-r--r--tests/effects/teffects6.nim4
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/effects/teffects3.nim b/tests/effects/teffects3.nim
index bd4e0f7c9..cbd11f722 100644
--- a/tests/effects/teffects3.nim
+++ b/tests/effects/teffects3.nim
@@ -9,7 +9,7 @@ type
     a, b, c: string
     fn: proc (): int {.tags: [].}
 
-  EIO2 = ref object of EIO
+
 
 proc raiser(): int {.tags: [TObj, WriteIoEffect].} =
   writeLine stdout, "arg"
diff --git a/tests/effects/teffects4.nim b/tests/effects/teffects4.nim
index dcfab1299..0025c10c5 100644
--- a/tests/effects/teffects4.nim
+++ b/tests/effects/teffects4.nim
@@ -9,7 +9,7 @@ type
     a, b, c: string
     fn: proc (): int {.tags: [ReadIOEffect].}
 
-  EIO2 = ref object of EIO
+
 
 proc q() {.tags: [IoEffect].} =
   discard
diff --git a/tests/effects/teffects6.nim b/tests/effects/teffects6.nim
index ded43b7b4..3dd83786f 100644
--- a/tests/effects/teffects6.nim
+++ b/tests/effects/teffects6.nim
@@ -20,8 +20,8 @@ proc noRaise(x: proc()) {.raises: [].} =
   # unknown call that might raise anything, but valid:
   x()
 
-proc doRaise() {.raises: [EIO].} =
-  raise newException(EIO, "IO")
+proc doRaise() {.raises: [IoError].} =
+  raise newException(IoError, "IO")
 
 proc use*() =
   noRaise(doRaise)