Skip to content

Commit

Permalink
Add python2.7 support. Yes, that.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Feb 23, 2019
1 parent 2714f3b commit 064fb73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from io import open
from os import path
from setuptools import setup, find_packages

Expand Down
2 changes: 1 addition & 1 deletion src/pytest_check/check_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def log_failure(msg):
if 'contextlib.py' in file:
pass
else:
line = f" {file}, line {line}, in {func}() -> {context}"
line = " {}, line {}, in {}() -> {}".format(file, line, func, context)
pseudo_trace.append(line)
level += 1
pseudo_trace_str = "\n".join(reversed(pseudo_trace))
Expand Down

0 comments on commit 064fb73

Please sign in to comment.