Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Side by Side Diff: Lib/test/test_capi.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/test/test_bz2.py ('k') | Lib/test/test_cgi.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Run the _testcapi module tests (tests for the Python/C API): by defn, 1 # Run the _testcapi module tests (tests for the Python/C API): by defn,
2 # these are all functions _testcapi exports whose name begins with 'test_'. 2 # these are all functions _testcapi exports whose name begins with 'test_'.
3 3
4 from __future__ import with_statement 4 from __future__ import with_statement
5 import os 5 import os
6 import random 6 import random
7 import subprocess 7 import subprocess
8 import sys 8 import sys
9 import time 9 import time
10 import unittest 10 import unittest
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 self.pendingcalls_wait(l, n) 138 self.pendingcalls_wait(l, n)
139 139
140 # Bug #6012 140 # Bug #6012
141 class Test6012(unittest.TestCase): 141 class Test6012(unittest.TestCase):
142 def test(self): 142 def test(self):
143 self.assertEqual(_testcapi.argparsing("Hello", "World"), 1) 143 self.assertEqual(_testcapi.argparsing("Hello", "World"), 1)
144 144
145 145
146 class EmbeddingTest(unittest.TestCase): 146 class EmbeddingTest(unittest.TestCase):
147 147
148 @unittest.skipIf(
149 sys.platform.startswith('win'),
150 "test doesn't work under Windows")
151 def test_subinterps(self): 148 def test_subinterps(self):
152 # XXX only tested under Unix checkouts 149 # XXX only tested under Unix checkouts
153 basepath = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) 150 basepath = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
154 oldcwd = os.getcwd() 151 oldcwd = os.getcwd()
155 # This is needed otherwise we get a fatal error: 152 # This is needed otherwise we get a fatal error:
156 # "Py_Initialize: Unable to get the locale encoding 153 # "Py_Initialize: Unable to get the locale encoding
157 # LookupError: no codec search functions registered: can't find encoding " 154 # LookupError: no codec search functions registered: can't find encoding "
158 os.chdir(basepath) 155 os.chdir(basepath)
159 try: 156 try:
160 exe = os.path.join(basepath, "Modules", "_testembed") 157 exe = os.path.join(basepath, "Modules", "_testembed")
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 if threading: 203 if threading:
207 import time 204 import time
208 TestThreadState() 205 TestThreadState()
209 t = threading.Thread(target=TestThreadState) 206 t = threading.Thread(target=TestThreadState)
210 t.start() 207 t.start()
211 t.join() 208 t.join()
212 209
213 210
214 if __name__ == "__main__": 211 if __name__ == "__main__":
215 test_main() 212 test_main()
OLDNEW
« no previous file with comments | « Lib/test/test_bz2.py ('k') | Lib/test/test_cgi.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+