Commit 8136e5e9 authored by Kirill Smelkov's avatar Kirill Smelkov

golang: tests: Fix one oversight in test_deferrecover

The function that verifies "no exception/panic" case was prepared but not called at all.
This oversight was there from 5146eb0b "Add support for defer & recover".
parent e205dbf6
# -*- coding: utf-8 -*-
# Copyright (C) 2018-2020 Nexedi SA and Contributors.
# Copyright (C) 2018-2021 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
......@@ -1167,6 +1167,7 @@ def test_deferrecover():
def _():
assert recover() is None
defer(_)
_()
# not directly called by deferred func
v = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment