subscribe-test: extract subscribe_with_bad_fn function
subscribe-test: extract subscribe_with_bad_fn function

Replicates graphql/graphql-js@2deb27214ee4b74c09b19c55d934d72b0a7fd355

graphql-python/graphql-core