Skip to content

Instantly share code, notes, and snippets.

@MrMino
Last active June 19, 2021 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrMino/a576a98f772d8c947bb67b77610dbac9 to your computer and use it in GitHub Desktop.
Save MrMino/a576a98f772d8c947bb67b77610dbac9 to your computer and use it in GitHub Desktop.
Repro container for ipython/ipython#12203
from ubuntu:18.04
run apt update
run apt install -y python3.8 python3-pip
run python3.8 -m pip install ipdb ipython
run echo '\
import unittest\n\
\n\
\n\
class Test(unittest.TestCase):\n\
def test(self):\n\
import ipdb; ipdb.set_trace()\n\
for i in range(1, 10):\n\
self.assertEqual(i, i)\n\
\n\
\n\
def main():\n\
import tracemalloc\n\
\n\
tracemalloc.start(25)\n\
unittest.main()\n\
\n\
\n\
if __name__ == "__main__":\n\
main()\n' > /test.py
cmd python3.8 /test.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment