Re: hstore_plpython regression test does not work on Python 3
В списке pgsql-hackers по дате отправления:
| От | Oskari Saarenmaa |
|---|---|
| Тема | Re: hstore_plpython regression test does not work on Python 3 |
| Дата | |
| Msg-id | 5567FBDE.7040704@ohmu.fi обсуждение исходный текст |
| Ответ на | Re: hstore_plpython regression test does not work on Python 3 (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
29.05.2015, 03:12, Peter Eisentraut kirjoitti: > On 5/26/15 5:19 PM, Oskari Saarenmaa wrote: >>> [1] http://pgbuildfarm.org/cgi-bin/show_history.pl?nm=jaguarundi&br=HEAD >> >> Looks like that animal uses Python 3.4. Python 3.3 and newer versions >> default to using a random seed for hashing objects into dicts which >> makes the order of dict elements random; see >> https://docs.python.org/3/using/cmdline.html#cmdoption-R > > Ah, good catch. That explains the, well, randomness. I can reproduce > the test failures with PYTHONHASHSEED=2. > > But I haven't been successful getting that environment variable set so > that it works in the installcheck case. Instead, I have rewritten the > tests to use asserts instead of textual comparisons. See attached > patch. Comments? Looks good to me. / Oskari
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера