Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support free-threaded Python 3.13 #925

Merged
merged 10 commits into from
Jan 15, 2025
Prev Previous commit
Next Next commit
fix pep8
  • Loading branch information
ngoldbaum committed Jan 14, 2025
commit f0f4c1771133a65a50f4ebbcee990104c68bab99
12 changes: 5 additions & 7 deletions tests/test_bcrypt.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import random
import uuid

from concurrent.futures import ThreadPoolExecutor
from dataclasses import dataclass

import bcrypt
import pytest

import bcrypt

_test_vectors = [
(
b"Kk4DQuMMfZL9o",
Expand Down Expand Up @@ -519,9 +517,9 @@ def check(self, pw):
return bcrypt.checkpw(pw, self.hash_)

# use UUIDs as both ID and passwords
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment no longer makes a ton of sense

NUM_USERS = 50
ids = [get_id() for _ in range(NUM_USERS)]
pws = {id_: get_id() for id_, _ in zip(ids, range(NUM_USERS))}
num_users = 50
ids = [get_id() for _ in range(num_users)]
pws = {id_: get_id() for id_, _ in zip(ids, range(num_users))}

user_creator = ThreadPoolExecutor(max_workers=4)

Expand Down