Mercurial > hg > config
comparison .emacs @ 641:15c20cfc6b22
create tmpdir for test as boilerplate
| author | Jeff Hammel <k0scist@gmail.com> | 
|---|---|
| date | Mon, 10 Mar 2014 16:40:47 -0700 | 
| parents | 6dedad97c4eb | 
| children | b4dc72b7c5c3 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 640:3059ee249888 | 641:15c20cfc6b22 | 
|---|---|
| 194 ") | 194 ") | 
| 195 | 195 | 
| 196 (fset 'python-test "#!/usr/bin/env python | 196 (fset 'python-test "#!/usr/bin/env python | 
| 197 | 197 | 
| 198 import os | 198 import os | 
| 199 import shutil | |
| 199 import tempfile | 200 import tempfile | 
| 200 import unittest | 201 import unittest | 
| 201 | 202 | 
| 202 here = os.path.dirname(os.path.abspath(__file__)) | 203 here = os.path.dirname(os.path.abspath(__file__)) | 
| 203 | 204 | 
| 204 class Test(unittest.TestCase): | 205 class Test(unittest.TestCase): | 
| 205 def test_basic(self): | 206 def test_basic(self): | 
| 206 pass | 207 tmpdir = tempfile.mkdtemp() | 
| 208 try: | |
| 209 pass | |
| 210 finally: | |
| 211 shutil.rmtree(tmpdir) | |
| 207 | 212 | 
| 208 if __name__ == '__main__': | 213 if __name__ == '__main__': | 
| 209 unittest.main() | 214 unittest.main() | 
| 210 ") | 215 ") | 
| 211 | 216 | 
