Skip to content

[BUG] debian/tests do not succeed #5

Open

Description

@r41k0u

if (!PyArg_ParseTupleAndKeywords(args, keywords, "s|ssOp", (char **)keywordnames, &code, &description, &var, &value, &keep_single))

Argparsing has been recently changed to match O|ssOp instead of s|ssOp
This change causes snippets like the following to be invalid now (even when they worked previously):

>>> import lua
>>> code = lua.Lua()
>>> code.run(var='a', value='x')

Failure of these tests is also blocking version promotion of python-lua in Ubuntu and Debian.
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-questing/questing/amd64/p/python-lua/20250726_173858_38488@/log.gz
https://autopkgtest.ubuntu.com/packages/p/python-lua

There are multiple ways to fix this, but it is open ended. We can change the tests, but we don't know what the syntax spec is like. We can change the argparsing, but we don't know if that will align with the author's plan of this project.

Activity

  1. r41k0u commented on Sep 2, 2025

    @r41k0u
    Author

    This should be a useful regression report:

    109s Traceback (most recent call last):
    109s   File "/tmp/autopkgtest.1Vr8yV/build.KBl/src/debian/tests/./test", line 27, in <module>
    109s     code.run(var = 'a', value = 'x')
    109s     ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    109s TypeError: function missing required argument 'code' (pos 1)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions