This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typechecks create: /Users/jaraco/code/public/tahoe-lafs/.tox/typechecks | |
typechecks installdeps: mypy, git+https://github.com/jaraco/mypy-zope@bugfix/21-InterfaceClass-subclass, git+https://github.com/jaraco/foolscap@bugfix/75-use-metaclass | |
typechecks installed: attrs==20.2.0,Automat==20.2.0,cffi==1.14.3,constantly==15.1.0,cryptography==3.2.1,foolscap @ git+https://github.com/jaraco/foolscap@d70d8ecee926d3693b9fac55aebe13573d4f71c9,hyperlink==20.0.1,idna==2.10,incremental==17.5.0,mypy==0.790,mypy-extensions==0.4.3,mypy-zope @ git+https://github.com/jaraco/mypy-zope@48f912cc3cdb4ee37d4d3783ef466a7dce8bf0a9,pyasn1==0.4.8,pyasn1-modules==0.2.8,pycparser==2.20,PyHamcrest==2.0.2,pyOpenSSL==19.1.0,service-identity==18.1.0,six==1.15.0,Twisted==20.3.0,typed-ast==1.4.1,typing-extensions==3.7.4.3,zope.event==4.5.0,zope.interface==5.1.2,zope.schema==6.0.0 | |
typechecks run-test-pre: PYTHONHASHSEED='1725564413' | |
typechecks run-test: commands[0] | mypy src | |
src/allmydata/util/pollmixin.py:26: error: Need type annotation for '_p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tahoe-lafs 3399.mypy $ tox -e typechecks | |
typechecks installed: attrs==20.2.0,Automat==20.2.0,cffi==1.14.3,constantly==15.1.0,cryptography==3.1.1,foolscap @ git+https://github.com/jaraco/foolscap@ff3b9e8c1e4fa13701273a2143ba80b1e58f47cf,hyperlink==20.0.1,idna==2.10,incremental==17.5.0,mypy==0.782,mypy-extensions==0.4.3,mypy-zope @ git+https://github.com/jaraco/mypy-zope@4d75c8ed677f30cf05bc94755d64ec7c8f561e63,pyasn1==0.4.8,pyasn1-modules==0.2.8,pycparser==2.20,PyHamcrest==2.0.2,pyOpenSSL==19.1.0,service-identity==18.1.0,six==1.15.0,Twisted==20.3.0,typed-ast==1.4.1,typing-extensions==3.7.4.3,zope.event==4.5.0,zope.interface==5.1.2,zope.schema==6.0.0 | |
typechecks run-test-pre: PYTHONHASHSEED='1876895777' | |
typechecks run-test: commands[0] | mypy src | |
src/allmydata/util/pollmixin.py:26: error: Need type annotation for '_poll_should_ignore_these_errors' (hint: "_poll_should_ignore_these_errors: List[<type>] = ...") | |
src/allmydata/test/test_python3.py:50: error: "Callable[[Python3PortingEffortTests], Any]" has no attrib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gc | |
import random | |
import contextlib | |
class Opener: | |
def __enter__(self): | |
return random.randint(1, 100) | |
def __exit__(self, *args): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gc | |
import random | |
import contextlib | |
class Opener: | |
@contextlib.contextmanager | |
def open(self): | |
yield random.randint(1, 100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gc | |
import random | |
import functools | |
import contextlib | |
@functools.singledispatch | |
@contextlib.contextmanager | |
def make_context(obj): | |
yield random.randint(1, 100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gc | |
import random | |
import functools | |
import contextlib | |
class Opener: | |
@contextlib.contextmanager | |
def open(self): | |
yield random.randint(1, 100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1m================================================= test session starts =================================================[0m | |
platform linux -- Python 3.9.0, pytest-6.1.1, py-1.9.0, pluggy-0.13.1 | |
cachedir: .cache/pytest | |
rootdir: /home/jaraco/code/public/xonsh, configfile: setup.cfg | |
plugins: cov-2.10.1, timeout-1.4.2, xonsh-0.9.24 | |
[1mcollecting ... [0m[1m collecting 0 items [0m[1m collecting 1015 items [0m[1m collecting 3416 items / 1 skipped / 3415 selected [0m[1m collecting 4076 items / 1 skipped / 4075 selected [0m[1m collecting 4163 items / 1 skipped / 4162 selected [0m[1m collecting 4183 items / 1 s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
py27 develop-inst-noop: /Users/jaraco/code/public/foolscap | |
py27 installed: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support,attrs==20.2.0,Automat==20.2.0,cffi==1.14.3,constantly==15.1.0,cryptography==3.1.1,enum34==1.1.10,-e git+gh://warner/foolscap@44ce706869e2b5e633d07530ecac82514874d617#egg=foolscap,funcsigs==1.0.2,hyperlink==20.0.1,idna==2.10,incremental==17.5.0,ipaddress==1.0.23,mock==3.0.5,pyasn1==0.4.8,pyasn1-modules==0.2.8,pycparser==2.20,pyflakes==2.2.0,PyHamcrest==1.10.1,pyOpenSSL==19.1.0,service-identity==18.1.0,six==1.15.0,Twisted==20.3.0,txtorcon==20.0.0,typing==3.7.4.3,zope.interface==5.1.2 | |
py27 run-test-pre: PYTHONHASHSEED='3227884433' | |
py27 run-test: commands[0] | pyflakes setup.py src | |
py27 run-test: commands[1] | t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trial-retry $ cat test_sample.py | |
# test_sample.py | |
import unittest | |
class DemoTest(unittest.TestCase): | |
def test_passes(self): | |
pass | |
def test_fails(self): | |
self.fail("I failed.") | |
trial-retry $ trial test_sample.py | |
test_sample |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -it jaraco/multipy-tox python3 -m pip-run -q 'setuptools<48' -- -m pip-run -v --no-binary pyyaml pyyaml -- -c "import yaml; prin | |
t('worked!')" | |
Non-user install due to --prefix or --target option | |
Created temporary directory: /tmp/pip-target-avfqnqn_ | |
Created temporary directory: /tmp/pip-ephem-wheel-cache-1gc9i8l7 | |
Created temporary directory: /tmp/pip-req-tracker-s5mph4z0 | |
Initialized build tracking at /tmp/pip-req-tracker-s5mph4z0 | |
Created build tracker: /tmp/pip-req-tracker-s5mph4z0 | |
Entered build tracker: /tmp/pip-req-tracker-s5mph4z0 | |
Created temporary directory: /tmp/pip-install-6o2am2hn |