Skip to content

Commit

Permalink
Merge pull request #11 from wimglenn/issue10
Browse files Browse the repository at this point in the history
issue10
  • Loading branch information
wimglenn authored Jul 16, 2020
2 parents 6aeafac + 264892c commit 2a19acb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,15 @@ sudo: false

python:
- "2.7"
- "3.5"
- "3.6"
- "pypy"
- "pypy3.5"
- "3.7"
- "3.8"
- "nightly"

matrix:
fast_finish: true
allow_failures:
- python: "nightly"
include:
- python: 3.7
dist: xenial
sudo: true

install:
- pip install --upgrade pytest
Expand Down
3 changes: 2 additions & 1 deletion pytest_structlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import structlog


__version__ = "0.2"
__version__ = "0.3"


class EventList(list):
Expand Down Expand Up @@ -73,6 +73,7 @@ def log(monkeypatch):

# redirect logging to log capture
cap = StructuredLogCapture()
structlog.reset_defaults()
structlog.configure(processors=[cap.process])
monkeypatch.setattr("structlog.configure", no_op)
monkeypatch.setattr("structlog.configure_once", no_op)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="pytest-structlog",
version="0.2",
version="0.3",
url="https://github.com/wimglenn/pytest-structlog",
description="Structured logging assertions",
long_description=open("README.rst").read(),
Expand Down

0 comments on commit 2a19acb

Please sign in to comment.