Skip to content

Commit

Permalink
Merge pull request #17 from wimglenn/py3.9
Browse files Browse the repository at this point in the history
test also on python 3.9
  • Loading branch information
wimglenn authored Mar 26, 2021
2 parents b715180 + a979150 commit c0fbf1a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "nightly"

matrix:
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
],
options={"bdist_wheel": {"universal": "1"}},
)
27 changes: 27 additions & 0 deletions tests/test_issue14.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import structlog


logger = structlog.get_logger("some logger")


def test_first():
structlog.configure(
processors=[
structlog.stdlib.filter_by_level,
structlog.stdlib.ProcessorFormatter.wrap_for_formatter,
],
context_class=dict,
logger_factory=structlog.stdlib.LoggerFactory(),
wrapper_class=structlog.stdlib.BoundLogger,
cache_logger_on_first_use=False,
)
logger.warning("test")


def test_second(log):
logger.warning("test")
assert log.has("test")


def test_third():
logger.warning("test")

0 comments on commit c0fbf1a

Please sign in to comment.