Changeset 224 for trunk/src/pyspacewar/tests/test_ui.py
- Timestamp:
- 12/25/06 18:25:30 (5 years ago)
- Files:
-
- 1 modified
-
trunk/src/pyspacewar/tests/test_ui.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pyspacewar/tests/test_ui.py
r76 r224 217 217 218 218 219 def setUp(test=None): 220 import pygame 221 pygame.init() # so that pygame.key.name() works 222 # unfortunately, on linux, if $DISPLAY is unset, pygame.init doesn't 223 # complain, but pygame.key.name() returns 'unknown key' for all keys 224 225 219 226 def test_suite(): 220 227 path = os.path.join(os.path.dirname(__file__), os.path.pardir) … … 222 229 sys.path.append(path) 223 230 return unittest.TestSuite([ 224 doctest.DocTestSuite('ui' ),231 doctest.DocTestSuite('ui', setUp=setUp), 225 232 doctest.DocTestSuite()]) 226 233
