Skip to content

Instantly share code, notes, and snippets.

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 2, 2025 15:35
set -e, -u, -o, -x pipefail explanation
@wingyplus
wingyplus / test_subprocess.py
Last active October 15, 2022 06:24
mocking subprocess
import unittest
import mock
import subprocess
class PythonSubprocessTest(unittest.TestCase):
class MockPopen(object):
def __init__(self):
pass
def communicate(self, input=None):