Skip to content

Tests/t_ldapobject.py fails on pypy3 CI run #460

Closed
@droideck

Description

@droideck

CI tests start to fail in Tests/t_ldapobject.py with the next error:

        self.server.slapadd(SCHEMA_TEMPLATE, ["-n0"])
        self.server.restart()
>       self.reset_connection()

# Or

      def tearDown(self):
  >       self._sock.close()

But always it points to:

    def _real_close(self, _ss=_socket.socket):
        # This function should not reference any globals. See issue #808164.
>       _ss.close(self)
E       OSError: [Errno 9] Bad file descriptor

Possibly, we're trying to close the socket that was already closed.
And, it's possibly a race condition because sometimes it happens and sometimes it's not (and only on pypy3 runs).

Further investigation is required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions