summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
authorAlexander Shorin <kxepal@gmail.com>2012-09-12 08:34:45 +0400
committerAlexander Shorin <kxepal@gmail.com>2012-09-12 08:34:45 +0400
commitaef6313b049b08f08dd48eb6173fcb1eb63f8bcf (patch)
treefcb411ae0bda6763a4d34a19c84c0735adf1208e /tests.py
parenta2c3bc2de1a8f315f9b21e0846c17d92864c525c (diff)
downloadpython-json-pointer-aef6313b049b08f08dd48eb6173fcb1eb63f8bcf.tar.gz
Fix compatibility with Python 2.5.
Emulate next(b, None) through for loop with single round. There wasn't print_function, while it really doesn't needed.
Diffstat (limited to 'tests.py')
-rwxr-xr-xtests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests.py b/tests.py
index df500cc..57a4818 100755
--- a/tests.py
+++ b/tests.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-from __future__ import print_function
import doctest
import unittest
import sys
@@ -73,7 +72,8 @@ if coverage is not None:
coverage.erase()
if coverage is None:
- print("""
- No coverage reporting done (Python module "coverage" is missing)
- Please install the python-coverage package to get coverage reporting.
- """, file=sys.stderr)
+ sys.stderr.write("""
+No coverage reporting done (Python module "coverage" is missing)
+Please install the python-coverage package to get coverage reporting.
+""")
+ sys.stderr.flush()