Skip to content

sign_in_with_password locking python unittest  #844

@FelipeNFL

Description

@FelipeNFL

Bug report

Describe the bug

I'm using the Supabase Client Python with the unittest library to make some asserts in a data transform. But, if when I use the sign_in_with_password() method in the setUpClass to log in the project, the terminal is locked after the tests execution. The process is not kill and the Ctrl+C doesn't work too. I tried to call close() in the auth, but the problem persists. It appears there to be some deadlock.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Import the supabase in a unittest file
  2. Create a client
  3. Call sign_in_with_passwod() in the setUpClass
  4. Wait for the test execution end
  5. See the error

Expected behavior

The process needs to be killed when the test finishes.

System information

  • OS: Windows 11
  • Version of supabase-python: 2.5.1
  • Version of Python: 3.12.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions