Skip to content

Commit 69d216c

Browse files
authored
unflake TestConstructUnknownPython (#23086)
This test is frequently flaky. According to Claude, this is because `resource.py` shadows python's stdlib resource module. Apparently the search order can vary between runs depending on `uv`, so this breaks sometimes, but not others. Renaming the module fixes the collision, so it shouldn't bother us again. Fixes #23085
1 parent d9968f7 commit 69d216c

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/integration/construct_component_unknown/python/__main__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright 2016, Pulumi Corporation. All rights reserved.
22

3-
from resource import Resource
3+
from my_resource import Resource
44
from component import Component
55

66
resource = Resource("resource")

tests/integration/construct_component_unknown/python/resource.py renamed to tests/integration/construct_component_unknown/python/my_resource.py

File renamed without changes.

0 commit comments

Comments
 (0)