Skip to content

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Feb 8, 2020

No description provided.

hugovk and others added 20 commits January 31, 2020 20:56
* Fix favicon for Chrome and Opera

* Delete pytest1favi.ico

Co-authored-by: Bruno Oliveira <[email protected]>
testing/test_meta.py ensures this already as a side effect
(+ tests a few more (`__init__.py` files) and should have been
combined with it right away [1].

1: pytest-dev#4510 (comment)

Ref: pytest-dev@eaa05531e
Ref: pytest-dev@4d31ea831
…t-dev#6662)

* Explicitly state on the PR template that we can squash commits

This way we don't need to ask every time, and users who for some reason
would not like us to squash their commits can explicitly state so.
Everything was using `_pytest.compat.getfslineno` basically, which
wrapped `_pytest._code.source.getfslineno`.

This moves the extra code from there into it directly, and uses the
latter everywhere.

This helps to eventually remove the one in compat eventually, and also
causes less cyclic imports.
Previously this would be turned via `py.path.local("")` into the current
working directory.

This appears to be what `fspath = fn and py.path.local(fn) or None`
tries to avoid in `getfslineno`'s `TypeError` handling already, if
`Code` would raise it.
Conflicts:
	src/_pytest/main.py
	src/_pytest/python.py
@blueyed
Copy link
Contributor Author

blueyed commented Feb 8, 2020

3.5.1 job fails:

$ tox
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.5.1/bin/tox", line 7, in <module>
    from tox import cmdline
  File "/home/travis/virtualenv/python3.5.1/lib/python3.5/site-packages/tox/__init__.py", line 9, in <module>
    import pluggy
  File "/home/travis/virtualenv/python3.5.1/lib/python3.5/site-packages/pluggy/__init__.py", line 16, in <module>
    from .manager import PluginManager, PluginValidationError
  File "/home/travis/virtualenv/python3.5.1/lib/python3.5/site-packages/pluggy/manager.py", line 11, in <module>
    import importlib_metadata
  File "/home/travis/virtualenv/python3.5.1/lib/python3.5/site-packages/importlib_metadata/__init__.py", line 9, in <module>
    import zipp
ImportError: No module named 'zipp'
The command "tox" exited with 1.

(=> jaraco/zipp#40)

@blueyed blueyed force-pushed the merge-master-into-features branch from 728bb07 to 32a0920 Compare February 8, 2020 04:52
blueyed added a commit to blueyed/pytest that referenced this pull request Feb 8, 2020
3.5.1 fails there currently and I do not feel like we should cover it
here anymore.

Ref: pytest-dev#6691 (comment)
Ref: pytest-dev#6463.
@blueyed
Copy link
Contributor Author

blueyed commented Feb 8, 2020

Not taking care of this myself for now.

@blueyed blueyed closed this Feb 8, 2020
@blueyed blueyed deleted the merge-master-into-features branch February 8, 2020 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants