Commit Graph

4 Commits

Author SHA1 Message Date
Justin Van Patten e6359b86b3 [sdk/python] Fix enum test for python 11 behavior change
Python 11 has changed the behavior of `__format__` and `__str__` to return the type and name of an enum rather than its value. This affects one of our tests which is expecting the value of the enum ("Burgundy") to be formatted in a sentence and not the type and name ("RubberTreeVariety.BURGUNDY"). This change fixes the test to explicitly use the enum's value in the formatted string so we get consistent output when the test is run across multiple versions of Python.
2023-03-22 07:23:46 -07:00
Aaron Friel bcd4ee9909
Fix non-determinism in Python dynamic provider serialization ()
* fix: workaround for nondeterminism in dynamic provider serialization

* Revert "fix: simplify test, remove capture of global variable ()"

This reverts commit 7b8b1cceae.

* chore: changelog entry
2022-05-22 20:15:29 -07:00
Aaron Friel 7b8b1cceae
fix: simplify test, remove capture of global variable () 2022-05-22 08:48:06 -07:00
Komal 48f43906f4
[sdk/python] - Support enums ()
Co-authored-by: Pat Gavlin <pat@pulumi.com>
2020-11-24 19:15:11 -06:00