diff options
author | 2021-02-04 19:15:57 -0800 | |
---|---|---|
committer | 2021-02-04 19:30:42 -0800 | |
commit | 2240dde3748c8a27693bce5df6b517b648e760a6 (patch) | |
tree | cde159bc978ab2a0bb15b80ff484fb79e63e3be4 | |
parent | Fix the memory limit test and the import error (diff) |
Fix patch for DEBUG value during testing
-rw-r--r-- | tests/test_nsjail.py | 2 |
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.", |