Tests hang when using docker interpreter

Starting a few months ago, unit tests hang indefinitely whenever I use the Docker interpreter, which forces me to restart PyCharm.

 

The picture shows the issue when I run a single unit test called `test_index` using pytest. The unit test appears to run successfully but the process hangs. Other interpreters work fine (e.g. Virtual Environment and Docker Compose). However, the Docker interpreter is my favorite so I'd like to get this working again.

To reproduce this issue, you simply need to setup a Docker interpreter and run any unit test. For a more detailed illustration, clone the following repo I made and follow the steps in the README: https://github.com/johnnymetz/pycharm-tests-hang-bug

I tried to reinstall PyCharm, upgrade / downgrade PyCharm and upgrade Docker but no luck.

Here's my PyCharm system info:

PyCharm 2020.2.3 (Professional Edition)
Build #PY-202.7660.27, built on October 6, 2020
Runtime version: 11.0.8+10-b944.34 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.6
GC: ParNew, ConcurrentMarkSweep
Memory: 725M
Cores: 12
Non-Bundled Plugins: com.intellij.plugins.vscodekeymap, com.jetbrains.intellij.datalore

2
3 comments
Avatar
Permanently deleted user

I confirm the same behaviour.

I need to test the code in a docker interpreter, because we're doing AWS lambda development. The only way out seems to be to kill the PyCharm process. 

PyCharm 2020.2.3, interpreter based on python:3.8

0

Same behavior. It just started today and makes PyCharm essentially unusable for me, being that I have to kill the whole IDE and then regenerate skeletons / index when I start it again (which takes a few minutes). It doesn't seem to happen for all sets of tests and may be non-deterministic.

PyCharm 2020.2.3 (Professional Edition)
Build #PY-202.7660.27, built on October 6, 2020
Runtime version: 11.0.8+10-b944.34 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

macOS 10.15.7

0

Hello, 

 

Please vote for the bug https://youtrack.jetbrains.com/issue/PY-45357 in order to increase its priority. 

 

I apologise for  the inconvenience. 

0

Please sign in to leave a comment.