summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorChris Heller <chris.heller@greyheller.com>2016-12-21 19:06:11 -0800
committerChris Heller <chris.heller@greyheller.com>2016-12-21 19:06:11 -0800
commitaf63bd4e0b45bad7985de829d311a8c84a99006b (patch)
treed77b9ebe8b4040aef29dbab5cb684c9c0c1e1522 /tests
parent80a727f1ce74ebb3b4cf0c5a6f75d894638512c8 (diff)
downloadNim-af63bd4e0b45bad7985de829d311a8c84a99006b.tar.gz
Update unit test to handle AssertionError instead of ValueError for #5119
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/tsplit2.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stdlib/tsplit2.nim b/tests/stdlib/tsplit2.nim
index 5c4245d54..7fd9dda74 100644
--- a/tests/stdlib/tsplit2.nim
+++ b/tests/stdlib/tsplit2.nim
@@ -12,7 +12,7 @@ for w in split("|abc|xy|z", {'|'}):
 try:
   discard "hello".split("")
   echo "false"
-except ValueError:
+except AssertionError:
   echo "true"
 
 #OUT true