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