Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-17626: Add travis file #36

Merged
merged 3 commits into from
Feb 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo: false
language: python
matrix:
include:
- python: '3.6'
install:
- pip install flake8
script: flake8
4 changes: 2 additions & 2 deletions tests/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def testMDCPutPid(self):
""".format(line, os.getpid(), msg))

# don't pass other tests in child process
if pid is 0:
if pid == 0:
os._exit(0)

def testFileAppender(self):
Expand Down Expand Up @@ -317,7 +317,7 @@ def testPythonLogging(self):
log.configure()
lgr.info("This is INFO")
lgr.debug("This is DEBUG")
lgr.warn("This is %s", "WARNING")
lgr.warning("This is %s", "WARNING")
# message can be arbitrary Python object
lgr.info(((1, 2), (3, 4)))
lgr.info({1: 2})
Expand Down