See https://github.com/Pylons/pyramid/pull/3330#issuecomment-414206338
See Pylons/pyramid#3330 (comment)