Merge pkg_resources workaround
Merge branch 'pkg_resources_bugfix' of github.com:raquel-ucl/pytest into pkg-resources This is an odd case and doesn't really make sense, it is working around a bug in maven/jython and the old version or weird packaging of setuptools they use. But we used to do this in the past so might as well keep doing this.
This commit is contained in:
commit
f484e7c9ca
1
AUTHORS
1
AUTHORS
|
@ -106,6 +106,7 @@ Punyashloka Biswal
|
|||
Quentin Pradet
|
||||
Ralf Schmitt
|
||||
Raphael Pierzina
|
||||
Raquel Alegre
|
||||
Roberto Polli
|
||||
Romain Dorgueil
|
||||
Roman Bolshakov
|
||||
|
|
|
@ -5,13 +5,12 @@
|
|||
in Python 2 (`#1905`_).
|
||||
Thanks `@philpep`_ for the report and `@nicoddemus`_ for the PR.
|
||||
|
||||
*
|
||||
|
||||
* Assertions are now being rewritten for plugins in development mode
|
||||
(``pip install -e``) (`#1934`_).
|
||||
Thanks `@nicoddemus`_ for the PR.
|
||||
|
||||
*
|
||||
* Fix pkg_resources import error in Jython projects (`#1853`).
|
||||
Thanks `@raquel-ucl`_ for the PR.
|
||||
|
||||
*
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ import traceback
|
|||
import types
|
||||
import warnings
|
||||
|
||||
import pkg_resources
|
||||
import py
|
||||
# DON't import pytest here because it causes import cycle troubles
|
||||
import sys, os
|
||||
|
@ -952,6 +951,7 @@ class Config(object):
|
|||
except SystemError:
|
||||
mode = 'plain'
|
||||
else:
|
||||
import pkg_resources
|
||||
self.pluginmanager.rewrite_hook = hook
|
||||
for entrypoint in pkg_resources.iter_entry_points('pytest11'):
|
||||
# 'RECORD' available for plugins installed normally (pip install)
|
||||
|
|
Loading…
Reference in New Issue