Last active
June 19, 2021 10:49
-
-
Save MrMino/a576a98f772d8c947bb67b77610dbac9 to your computer and use it in GitHub Desktop.
Repro container for ipython/ipython#12203
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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