Skip to content

Commit

Permalink
Add Python 3.11 and 3.12 to CI tests
Browse files Browse the repository at this point in the history
- fix syntax in last change
  • Loading branch information
mrbean-bremen committed Jul 20, 2023
1 parent 3936fed commit 2b1283d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/merge-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
Expand All @@ -39,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']

steps:
- uses: actions/checkout@v3
Expand Down
7 changes: 2 additions & 5 deletions pynetdicom/tests/hide_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

import importlib.abc
from importlib.abc import MetaPathFinder

# py>=3.3 has MetaPathFinder
_ModuleHiderBase = getattr(importlib.abc, "MetaPathFinder")


class ModuleHider(MetaPathFinder)::
class ModuleHider(MetaPathFinder):
"""Import finder hook to hide specified modules
ModuleHider(hidden_modules) -> instance
hidden_modules is a list of strings naming modules to hide.
Expand Down

0 comments on commit 2b1283d

Please sign in to comment.