I tried to bump the library to 3.0 but I am gettin...
# python
n
I tried to bump the library to 3.0 but I am getting weird errors in tests
Copy code
def ReadResource(self, request):
        # Ensure we have an event loop on this thread because it's needed when deserializing resource references.
        _ensure_event_loop()
    
        state = rpc.deserialize_properties(request.properties)
        print("REQUEST:", request)
        resource_args = MockResourceArgs(typ=request.type,
                                         name=request.name,
                                         inputs=state,
                                         provider=request.provider,
                                         resource_id=request.id,
>                                        custom=request.custom or False)
E       AttributeError: custom

../../../.local/share/virtualenvs/cyclope-mw2Vtk-i/lib/python3.9/site-packages/pulumi/runtime/mocks.py:174: AttributeError
========================================================================================================== short test summary info ===========================================================================================================
FAILED tests/helpers/test_autoscaling_group.py::test_setup_autoscaling_group - AttributeError: custom
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================================== 1 failed, 71 deselected, 57 warnings in 6.11s ================================================================================================
Task exception was never retrieved
future: <Task finished name='Task-23' coro=<StackReference.__is_secret_name() done, defined at /home/matt/.local/share/virtualenvs/cyclope-mw2Vtk-i/lib/python3.9/site-packages/pulumi/stack_reference.py:99> exception=AttributeError('custom')>
anybody knows why this
custom
attribute is missing?
r
Hey @nutritious-shampoo-16116 it looks like this is a bug. Can you please open an issue?
g