Created
October 18, 2018 20:37
-
-
Save certik/afb931f4f72ad171cab83b9141cdcfcc to your computer and use it in GitHub Desktop.
This file contains 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
$ py.test ../tests/ | |
============================= test session starts ============================== | |
platform linux -- Python 3.7.0, pytest-3.8.2, py-1.7.0, pluggy-0.7.1 | |
rootdir: /tmp/flit, inifile: | |
plugins: cov-2.6.0 | |
collected 83 items | |
../tests/test_build.py .. [ 2%] | |
../tests/test_buildapi.py .... [ 7%] | |
../tests/test_command.py FF [ 9%] | |
../tests/test_common.py ...... [ 16%] | |
../tests/test_inifile.py ................ [ 36%] | |
../tests/test_init.py ....F [ 42%] | |
../tests/test_install.py ................ [ 61%] | |
../tests/test_installfrom.py . [ 62%] | |
../tests/test_sdist.py ......... [ 73%] | |
../tests/test_tomlify.py . [ 74%] | |
../tests/test_upload.py ..... [ 80%] | |
../tests/test_validate.py ........ [ 90%] | |
../tests/test_vcs.py . [ 91%] | |
../tests/test_wheel.py ....... [100%] | |
=================================== FAILURES =================================== | |
________________________________ test_flit_help ________________________________ | |
def test_flit_help(): | |
p = Popen([sys.executable, '-m', 'flit', '--help'], stdout=PIPE, stderr=STDOUT) | |
out, _ = p.communicate() | |
> assert 'Build wheel' in out.decode('utf-8', 'replace') | |
E AssertionError: assert 'Build wheel' in '/home/certik/ext/miniconda3/envs/flit/bin/python: No module named flit\n' | |
E + where '/home/certik/ext/miniconda3/envs/flit/bin/python: No module named flit\n' = <built-in method decode of bytes object at 0x55ce669bc830>('utf-8', 'replace') | |
E + where <built-in method decode of bytes object at 0x55ce669bc830> = b'/home/certik/ext/miniconda3/envs/flit/bin/python: No module named flit\n'.decode | |
../tests/test_command.py:7: AssertionError | |
_______________________________ test_flit_usage ________________________________ | |
def test_flit_usage(): | |
p = Popen([sys.executable, '-m', 'flit'], stdout=PIPE, stderr=STDOUT) | |
out, _ = p.communicate() | |
> assert 'Build wheel' in out.decode('utf-8', 'replace') | |
E AssertionError: assert 'Build wheel' in '/home/certik/ext/miniconda3/envs/flit/bin/python: No module named flit\n' | |
E + where '/home/certik/ext/miniconda3/envs/flit/bin/python: No module named flit\n' = <built-in method decode of bytes object at 0x55ce669d4270>('utf-8', 'replace') | |
E + where <built-in method decode of bytes object at 0x55ce669d4270> = b'/home/certik/ext/miniconda3/envs/flit/bin/python: No module named flit\n'.decode | |
../tests/test_command.py:12: AssertionError | |
__________________________________ test_init ___________________________________ | |
path = 'pyproject.toml', follow_symlinks = True | |
msg = "Path does not exist, or can't be stat-ed: 'pyproject.toml'" | |
def _stat_for_assert(path, follow_symlinks=True, msg=None): | |
stat = os.stat if follow_symlinks else os.lstat | |
try: | |
> return stat(path) | |
E FileNotFoundError: [Errno 2] No such file or directory: 'pyproject.toml' | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/testpath/asserts.py:32: FileNotFoundError | |
During handling of the above exception, another exception occurred: | |
def test_init(): | |
responses = ['foo', # Module name | |
'Thomas Kluyver', # Author | |
'thomas@example.com', # Author email | |
'http://example.com/', # Home page | |
'1' # License (1 -> MIT) | |
] | |
with TemporaryDirectory() as td, \ | |
patch_data_dir(), \ | |
faking_input(responses): | |
ti = init.TerminalIniter(td) | |
ti.initialise() | |
> assert_isfile('pyproject.toml') | |
../tests/test_init.py:90: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/testpath/asserts.py:59: in assert_isfile | |
st = _stat_for_assert(path, follow_symlinks, msg) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
path = 'pyproject.toml', follow_symlinks = True | |
msg = "Path does not exist, or can't be stat-ed: 'pyproject.toml'" | |
def _stat_for_assert(path, follow_symlinks=True, msg=None): | |
stat = os.stat if follow_symlinks else os.lstat | |
try: | |
return stat(path) | |
except OSError: | |
if msg is None: | |
msg = "Path does not exist, or can't be stat-ed: %r" % path | |
> raise AssertionError(msg) | |
E AssertionError: Path does not exist, or can't be stat-ed: 'pyproject.toml' | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/testpath/asserts.py:36: AssertionError | |
----------------------------- Captured stdout call ----------------------------- | |
Choose a license (see http://choosealicense.com/ for more info) | |
1. MIT - simple and permissive | |
2. Apache - explicitly grants patent rights | |
3. GPL - ensures that code based on this is shared with the same terms | |
4. Skip - choose a license later | |
Written pyproject.toml; edit that file to add optional extra info. | |
=============================== warnings summary =============================== | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/socks.py:58: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working | |
from collections import Callable | |
/tmp/flit/flit/wheel.py:74: DeprecationWarning: invalid escape sequence \w | |
re.sub("[^\w\d.]+", "_", self.metadata.name, flags=re.UNICODE), | |
/tmp/flit/flit/wheel.py:75: DeprecationWarning: invalid escape sequence \w | |
re.sub("[^\w\d.]+", "_", self.metadata.version, flags=re.UNICODE), | |
/tmp/flit/flit/install.py:181: DeprecationWarning: invalid escape sequence \{ | |
cmd = '"{python}" "%~dp0\{script}" %*\r\n'.format( | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/responses.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working | |
from collections import namedtuple, Sequence, Sized | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/responses.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working | |
from collections import namedtuple, Sequence, Sized | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/cookies.py:312: DeprecationWarning: Flags not at the start of the expression '(?ix) # Case-insens' (truncated) | |
ATTR_RE = re.compile(ATTR) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/responses.py:117: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly | |
signature = inspect.formatargspec(args, a, kw, defaults) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/responses.py:121: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly | |
callargs = inspect.formatargspec(args, a, kw, None) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/responses.py:117: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly | |
signature = inspect.formatargspec(args, a, kw, defaults) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/responses.py:121: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly | |
callargs = inspect.formatargspec(args, a, kw, None) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
/home/certik/ext/miniconda3/envs/flit/lib/python3.7/site-packages/docutils/io.py:245: DeprecationWarning: 'U' mode is deprecated | |
self.source = open(source_path, mode, **kwargs) | |
-- Docs: https://docs.pytest.org/en/latest/warnings.html | |
=============== 3 failed, 80 passed, 37 warnings in 2.33 seconds =============== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment