1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units
Marius Gedminas f91b28ef23 Fix safe_eval() of set literals
There was code to support set literals (on Python 2.7 and newer), but it
was buggy: SAFE_NODES.union() doesn't modify SAFE_NODES in place,
instead it returns a new set object that is then silently discarded.

I added a unit test and fixed the code.  I also changed the version
check to use sys.version_tuple instead of a string comparison, for
consistency with the subsequent Python 3.4 version check that I added in
the previous commit.
2015-09-11 09:41:05 +03:00
..
errors Making the switch to v2 2015-05-03 21:47:26 -05:00
executor Add a comment explaining why async = 1 in the test 2015-09-07 19:46:05 +03:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Starting to add additional unit tests for VariableManager 2015-09-04 16:41:38 -04:00
module_utils Use 0oNNN octal syntax in test/ 2015-08-27 22:15:57 +03:00
parsing Compatibility with six-1.3.0 2015-09-08 09:46:12 -07:00
playbook simplify become testing and handling, we had drifted and were doulbe checking prompt, become and become_pass 2015-09-04 10:36:16 -04:00
plugins Fix unit test for plugins after basedir/push_basedir removal 2015-09-10 17:01:52 -04:00
template Fix safe_eval() of set literals 2015-09-11 09:41:05 +03:00
utils Cleanup combine_vars 2015-09-01 11:23:12 -07:00
vars Properly handle group/host_var files with dots in them 2015-09-08 03:20:09 -04:00
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00