aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-02-04 19:15:57 -0800
committerGravatar MarkKoz <[email protected]>2021-02-04 19:30:42 -0800
commit2240dde3748c8a27693bce5df6b517b648e760a6 (patch)
treecde159bc978ab2a0bb15b80ff484fb79e63e3be4
parentFix the memory limit test and the import error (diff)
Fix patch for DEBUG value during testing
-rw-r--r--tests/test_nsjail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_nsjail.py b/tests/test_nsjail.py
index 06dc5b6..c0e43b6 100644
--- a/tests/test_nsjail.py
+++ b/tests/test_nsjail.py
@@ -13,7 +13,6 @@ class NsJailTests(unittest.TestCase):
super().setUp()
self.nsjail = NsJail()
- self.nsjail.DEBUG = False
self.logger = logging.getLogger("snekbox.nsjail")
self.logger.setLevel(logging.WARNING)
@@ -101,6 +100,7 @@ class NsJailTests(unittest.TestCase):
self.assertEqual(result.stdout, "ValueError: embedded null byte")
self.assertEqual(result.stderr, None)
+ @unittest.mock.patch("snekbox.nsjail.DEBUG", new=False)
def test_log_parser(self):
log_lines = (
"[D][2019-06-22T20:07:00+0000][16] void foo::bar()():100 This is a debug message.",