summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-10 11:41:45 +0000
committerErik Johnston <erik@matrix.org>2016-02-10 11:41:45 +0000
commite557dc80b8ba6f077871229f5637ce9c528da3da (patch)
tree4ca9c6324776208d3f0f9c53c850e720ff4227e5 /tests
parentMerge pull request #568 from matrix-org/erikj/unread_notif (diff)
parentRemove comment (diff)
downloadsynapse-e557dc80b8ba6f077871229f5637ce9c528da3da.tar.xz
Merge pull request #566 from matrix-org/erikj/logcontext
Don't bother copying records on parent context
Diffstat (limited to 'tests')
-rw-r--r--tests/util/test_log_context.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/util/test_log_context.py b/tests/util/test_log_context.py
index efa0f28bad..65a330a0e9 100644
--- a/tests/util/test_log_context.py
+++ b/tests/util/test_log_context.py
@@ -5,6 +5,7 @@ from .. import unittest
 from synapse.util.async import sleep
 from synapse.util.logcontext import LoggingContext
 
+
 class LoggingContextTestCase(unittest.TestCase):
 
     def _check_test_key(self, value):
@@ -17,15 +18,6 @@ class LoggingContextTestCase(unittest.TestCase):
             context_one.test_key = "test"
             self._check_test_key("test")
 
-    def test_chaining(self):
-        with LoggingContext() as context_one:
-            context_one.test_key = "one"
-            with LoggingContext() as context_two:
-                self._check_test_key("one")
-                context_two.test_key = "two"
-                self._check_test_key("two")
-            self._check_test_key("one")
-
     @defer.inlineCallbacks
     def test_sleep(self):
         @defer.inlineCallbacks