mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Merged revisions 61038,61042-61045,61047,61049-61053,61055-61057 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r61049 | christian.heimes | 2008-02-24 13:26:16 +0100 (Sun, 24 Feb 2008) | 1 line Use PY_FORMAT_SIZE_T instead of z for string formatting. Thanks Neal. ........ r61051 | mark.dickinson | 2008-02-24 19:12:36 +0100 (Sun, 24 Feb 2008) | 2 lines Remove duplicate 'import re' in decimal.py ........ r61052 | neal.norwitz | 2008-02-24 19:47:03 +0100 (Sun, 24 Feb 2008) | 11 lines Create a db_home directory with a unique name so multiple users can run the test simultaneously. The simplest thing I found that worked on both Windows and Unix was to use the PID. It's unique so should be sufficient. This should prevent many of the spurious failures of the automated tests since they run as different users. Also cleanup the directory consistenly in the tearDown methods. It would be nice if someone ensured that the directories are always created with a consistent name. ........ r61057 | christian.heimes | 2008-02-24 23:48:05 +0100 (Sun, 24 Feb 2008) | 2 lines Added dependency rules for Objects/stringlib/*.h stringobject, unicodeobject and the two formatters are rebuild whenever a header files changes ........
This commit is contained in:
		
							parent
							
								
									ecbac8f38f
								
							
						
					
					
						commit
						23daade028
					
				
					 22 changed files with 127 additions and 77 deletions
				
			
		|  | @ -5,7 +5,6 @@ | |||
| import sys | ||||
| import time | ||||
| import errno | ||||
| import shutil | ||||
| import tempfile | ||||
| from pprint import pprint | ||||
| from random import random | ||||
|  | @ -47,7 +46,7 @@ def setUp(self): | |||
|         if verbose: | ||||
|             dbutils._deadlock_VerboseFile = sys.stdout | ||||
| 
 | ||||
|         homeDir = os.path.join(tempfile.gettempdir(), 'db_home') | ||||
|         homeDir = os.path.join(tempfile.gettempdir(), 'db_home%d'%os.getpid()) | ||||
|         self.homeDir = homeDir | ||||
|         try: | ||||
|             os.mkdir(homeDir) | ||||
|  | @ -64,12 +63,10 @@ def setUp(self): | |||
|         self.d.open(self.filename, self.dbtype, self.dbopenflags|db.DB_CREATE) | ||||
| 
 | ||||
|     def tearDown(self): | ||||
|         from test import test_support | ||||
|         test_support.rmtree(self.homeDir) | ||||
|         self.d.close() | ||||
|         self.env.close() | ||||
|         try: | ||||
|             shutil.rmtree(self.homeDir) | ||||
|         except OSError as e: | ||||
|             if e.errno != errno.EEXIST: raise | ||||
| 
 | ||||
|     def setEnvOpts(self): | ||||
|         pass | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Christian Heimes
						Christian Heimes