KeyError in module 'threading' after a successful py.test run

前端 未结 3 1073
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 07:33

I\'m running a set of tests with py.test. They pass. Yippie! But I\'m getting this message:

Exception KeyError: KeyError(4427427920,) in 

        
3条回答
  •  一个人的身影
    2020-12-07 08:13

    I had a similar problem with a gevent prototype script.

    The Greenlet callback was executing fine and I was synchronizing back to the main thread via g.join(). For my problem, I had to call gevent.shutdown() to shutdown (what I assume is) the Hub. After I manually shutdown the event loop, the program terminates properly without that error.

提交回复
热议问题