Skip to content

Commit

Permalink
Add support for Python 3.12 (#46)
Browse files Browse the repository at this point in the history
Co-authored-by: Wolfgang Schnerring <wolfgang.schnerring@zeit.de>
  • Loading branch information
icemac and wosc committed May 8, 2024
1 parent e2ee0ce commit a380203
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Change log for zope.pytestlayer

- Add support for Python 3.11.

- Add support for Python 3.12.

- Rename from ``gocept.pytestlayer`` to ``zope.pytestlayer``.


Expand Down
4 changes: 2 additions & 2 deletions src/zope/pytestlayer/fixture.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import contextlib
import imp
import re
import time
import types

import pytest
import zope.dottedname.resolve
Expand Down Expand Up @@ -205,7 +205,7 @@ def parsefactories(collector, layer):
ns = create(layer)
if ns:
name = get_fixture_name(layer, scope='function')
module = imp.new_module(name)
module = types.ModuleType(name)
module.__dict__.update(ns)
collector.session._fixturemanager.parsefactories(module, '')

Expand Down

0 comments on commit a380203

Please sign in to comment.