We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7b2f63 commit cb8d108Copy full SHA for cb8d108
2 files changed
python-stdlib/unittest/test_unittest.py
@@ -1,4 +1,5 @@
1
import unittest
2
+from test_unittest_isolated import global_context
3
4
5
class TestUnittestAssertions(unittest.TestCase):
@@ -142,6 +143,11 @@ def testInner():
142
143
else:
144
self.fail("Unexpected success was not detected")
145
146
+ def test_NotChangedByOtherTest(self):
147
+ global global_context
148
+ assert global_context is None
149
+ global_context = True
150
+
151
152
if __name__ == "__main__":
153
unittest.main()
python-stdlib/unittest/test_unittest_isolated.py
@@ -0,0 +1,15 @@
+import unittest
+global_context = None
6
7
+class TestUnittestIsolated(unittest.TestCase):
8
9
10
11
12
13
14
+if __name__ == "__main__":
15
+ unittest.main()
0 commit comments