Show More
@@ -632,7 +632,7 b' def _super_pprint(obj, p, cycle):' | |||
|
632 | 632 | p.pretty(obj.__thisclass__) |
|
633 | 633 | p.text(',') |
|
634 | 634 | p.breakable() |
|
635 |
if PYPY: # In PyPy, super() objects do |
|
|
635 | if PYPY: # In PyPy, super() objects don't have __self__ attributes | |
|
636 | 636 | dself = obj.__repr__.__self__ |
|
637 | 637 | p.pretty(None if dself is obj else dself) |
|
638 | 638 | else: |
@@ -6,6 +6,7 b' import sys' | |||
|
6 | 6 | import re |
|
7 | 7 | import shutil |
|
8 | 8 | import types |
|
9 | import platform | |
|
9 | 10 | |
|
10 | 11 | from .encoding import DEFAULT_ENCODING |
|
11 | 12 | |
@@ -292,7 +293,7 b' else:' | |||
|
292 | 293 | |
|
293 | 294 | |
|
294 | 295 | PY2 = not PY3 |
|
295 | PYPY = any(k.startswith("pypy") for k in dir(sys)) | |
|
296 | PYPY = platform.python_implementation() == "PyPy" | |
|
296 | 297 | |
|
297 | 298 | |
|
298 | 299 | def annotate(**kwargs): |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | ; -- Commands -- |
|
6 | 6 | ; pip install tox # Installs tox |
|
7 | 7 | ; tox # Runs the tests (call from the directory with tox.ini) |
|
8 |
; tox -r # |
|
|
8 | ; tox -r # Ditto, but forcing the virtual environments to be rebuilt | |
|
9 | 9 | ; tox -e py35,pypy # Runs only in the selected environments |
|
10 | 10 | ; tox -- --all -j # Runs "iptest --all -j" in every environment |
|
11 | 11 | |
@@ -22,7 +22,7 b' deps =' | |||
|
22 | 22 | py{36,35,34,33,27}: matplotlib |
|
23 | 23 | .[test] |
|
24 | 24 | |
|
25 |
; It's just to avoid loading IPython |
|
|
25 | ; It's just to avoid loading the IPython package in the current directory | |
|
26 | 26 | changedir = {envtmpdir} |
|
27 | 27 | |
|
28 | 28 | commands = iptest {posargs} |
General Comments 0
You need to be logged in to leave comments.
Login now