[arch-commits] Commit in penlight/trunk (penlight-lua-5.4.patch)
Levente Polyak
anthraxx at archlinux.org
Tue Sep 22 19:27:23 UTC 2020
Date: Tuesday, September 22, 2020 @ 19:27:22
Author: anthraxx
Revision: 711406
upgpkg: penlight 1.9.0-1
Deleted:
penlight/trunk/penlight-lua-5.4.patch
------------------------+
penlight-lua-5.4.patch | 33 ---------------------------------
1 file changed, 33 deletions(-)
Deleted: penlight-lua-5.4.patch
===================================================================
--- penlight-lua-5.4.patch 2020-09-22 19:26:41 UTC (rev 711405)
+++ penlight-lua-5.4.patch 2020-09-22 19:27:22 UTC (rev 711406)
@@ -1,33 +0,0 @@
-From f8c8628ab65542996de84a5a03ee912c7f7dd859 Mon Sep 17 00:00:00 2001
-From: Thijs <thijs at thijsschreijer.nl>
-Date: Tue, 28 Jul 2020 08:55:07 +0200
-Subject: [PATCH 2/3] fix(tests) fix tests failing on Lua 5.4
-
----
- tests/lua/mod52.lua | 10 +++++++++-
- 1 file changed, 9 insertions(+), 1 deletion(-)
-
-diff --git a/tests/lua/mod52.lua b/tests/lua/mod52.lua
-index 7cc8c7e..06e505e 100644
---- a/tests/lua/mod52.lua
-+++ b/tests/lua/mod52.lua
-@@ -10,9 +10,17 @@ local _ENV,M = require 'pl.import_into' (rawget(_G,'STRICT'))
- function answer ()
- -- of course, you don't have the usual global environment available
- -- so define it as a local up above, or use utils.import(_G).
-+
-+ local versioned_errors = {
-+ ["1"] = "attempt to call global 'print'",
-+ ["2"] = "attempt to call global 'print'",
-+ ["3"] = "attempt to call a nil value",
-+ ["4"] = "attempt to call a nil value",
-+ }
-+ local expected = versioned_errors[LUA_VERSION:match("Lua 5.(%d)")]
- test.assertraise(function()
- print 'hello'
-- end,(LUA_VERSION~="Lua 5.3") and "attempt to call global 'print'" or "attempt to call a nil value")
-+ end, expected)
-
- -- but all the Penlight modules are available
- return pretty.write(utils.split '10 20 30', '')
-
More information about the arch-commits
mailing list