Removed _CompatProperty("Package")
This commit is contained in:
parent
6fc7f07a80
commit
7d0dba18de
|
@ -72,7 +72,8 @@ def scopeproperty(name=None, doc=None):
|
||||||
|
|
||||||
|
|
||||||
def get_scope_package(node, fixturedef):
|
def get_scope_package(node, fixturedef):
|
||||||
cls = node.Package
|
import pytest
|
||||||
|
cls = pytest.Package
|
||||||
current = node
|
current = node
|
||||||
fixture_package_name = os.path.join(fixturedef.baseid, '__init__.py')
|
fixture_package_name = os.path.join(fixturedef.baseid, '__init__.py')
|
||||||
while current and (type(current) is not cls or
|
while current and (type(current) is not cls or
|
||||||
|
|
|
@ -116,7 +116,6 @@ class Node(object):
|
||||||
Function = _CompatProperty("Function")
|
Function = _CompatProperty("Function")
|
||||||
File = _CompatProperty("File")
|
File = _CompatProperty("File")
|
||||||
Item = _CompatProperty("Item")
|
Item = _CompatProperty("Item")
|
||||||
Package = _CompatProperty("Package")
|
|
||||||
|
|
||||||
def _getcustomclass(self, name):
|
def _getcustomclass(self, name):
|
||||||
maybe_compatprop = getattr(type(self), name)
|
maybe_compatprop = getattr(type(self), name)
|
||||||
|
|
Loading…
Reference in New Issue