[issue40909] unittest assertCountEqual doesn't filter on values in dict

2020-06-08 Thread Emil Bode
New submission from Emil Bode : Found as a comment on SO (https://stackoverflow.com/questions/12813633/how-to-assert-two-list-contain-the-same-elements-in-python#comment104082703_31832447): In unittest, `self.assertCountEqual({1: [1, 2, 3]}, {1: [5, 6, 7]})` succeeds, even though the two

[issue38327] Creating set with empty string returns empty set

2019-09-30 Thread Emil Bode
Emil Bode added the comment: You're right, I tested with set('a'), which gave me a set of size one, but generalized it here to 'somestring'. Maybe I'm just too loose with using set, instead of {} Sorry to bother you -- ___ Python tracker <ht

[issue38327] Creating set with empty string returns empty set

2019-09-30 Thread Emil Bode
Emil Bode added the comment: Some details about my setup: Python 3.7.1, Spyder 3.3.2 IPython 7.2.0 under Windows 10 64-bit -- ___ Python tracker <https://bugs.python.org/issue38

[issue38327] Creating set with empty string returns empty set

2019-09-30 Thread Emil Bode
New submission from Emil Bode : Initializing/creating a new set with an empty string via the set-command returns an empty set instead of set with the empty string. As in: While set('somestring') gives me a set of size one, set('') gives me an empty set (of size zero), just as set() would do