summaryrefslogtreecommitdiff
path: root/tests/test_utils/test_assert.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-18 19:50:39 +0800
committerOpportunityLiu <[email protected]>2019-06-18 19:50:39 +0800
commit98d4504577b586ef2398346a0db2743081cf03a8 (patch)
tree3aab00679f61eee14a62afb3989ed3d278bdb5a3 /tests/test_utils/test_assert.lua
parent0c58eac269fda12b1568bc9704237a48aedbc4b3 (diff)
skip some tests
Diffstat (limited to 'tests/test_utils/test_assert.lua')
-rw-r--r--tests/test_utils/test_assert.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_utils/test_assert.lua b/tests/test_utils/test_assert.lua
index 4a97cb3ac..a964fcfb3 100644
--- a/tests/test_utils/test_assert.lua
+++ b/tests/test_utils/test_assert.lua
@@ -1,8 +1,8 @@
-import("print_error")
+
import("check")
-local test_assert = { print_error = print_error.main }
+local test_assert = { print_error = import("print_error", { anonymous = true }).main }
function test_assert:require(value)
if not value then
@@ -66,7 +66,6 @@ function test_assert:will_raise(func, message_pattern)
table.remove(self._will_raise_stack, 1)
end
-function main(context)
- table.join2(context, test_assert)
- return context
+function main()
+ return test_assert
end