( path )
| 114 | |
| 115 | @contextlib.contextmanager |
| 116 | def CurrentWorkingDirectory( path ): |
| 117 | old_cwd = GetCurrentDirectory() |
| 118 | os.chdir( path ) |
| 119 | try: |
| 120 | yield |
| 121 | finally: |
| 122 | os.chdir( old_cwd ) |
| 123 | |
| 124 | |
| 125 | def _MockGetBufferNumber( buffer_filename ): |
no outgoing calls
no test coverage detected