]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Relax the Python version check for `__class_getitem__` tests
authorlayday <layday@protonmail.com>
Sun, 19 Sep 2021 15:58:05 +0000 (11:58 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Sun, 19 Sep 2021 15:58:05 +0000 (11:58 -0400)
commitb0260bd6706659ee01c33c41f4f7f4c9a8020512
tree43debfd461d94c896ff0c888c195843bfe8c7572
parent4d9bc42f52e2c37e4285cce0a41bfd9b030834b7
Relax the Python version check for `__class_getitem__` tests

<!-- Provide a general summary of your proposed changes in the Title field above -->

### Description
`__class_getitem__` to support generics was introduced in Python 3.7.
In 3.9 some built-ins were made generic but the functionality
for user-defined classes has been there since 3.7.

### Checklist
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)

-->

This pull request is:

- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [x] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**

Closes: #7049
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7049
Pull-request-sha: 7bd16d416db010e7140313fe326861cc263b8864

Change-Id: I4f45b9585d263636e613cc5c86e710fa31c7d283
lib/sqlalchemy/testing/requirements.py
test/base/test_misc_py3k.py