Removed _CompatProperty("Package")

This commit is contained in:
turturica 2018-04-27 10:23:15 -07:00
parent 6fc7f07a80
commit 7d0dba18de
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,8 @@ def scopeproperty(name=None, doc=None):
def get_scope_package(node, fixturedef):
cls = node.Package
import pytest
cls = pytest.Package
current = node
fixture_package_name = os.path.join(fixturedef.baseid, '__init__.py')
while current and (type(current) is not cls or

View File

@ -116,7 +116,6 @@ class Node(object):
Function = _CompatProperty("Function")
File = _CompatProperty("File")
Item = _CompatProperty("Item")
Package = _CompatProperty("Package")
def _getcustomclass(self, name):
maybe_compatprop = getattr(type(self), name)