首页下载资源游戏开发pygame-1.9.6.zip

ZIPpygame-1.9.6.zip

2401_864612283.24MB需要积分:1

资源文件列表:

pygame-1.9.6.zip 大约有600个文件
  1. pygame-1.9.6/
  2. pygame-1.9.6/PKG-INFO 479B
  3. pygame-1.9.6/README.rst 7.08KB
  4. pygame-1.9.6/buildconfig/
  5. pygame-1.9.6/buildconfig/MANIFEST.in 427B
  6. pygame-1.9.6/buildconfig/Makefile 889B
  7. pygame-1.9.6/buildconfig/Setup.SDL1.in 2.77KB
  8. pygame-1.9.6/buildconfig/Setup.SDL2.in 2.86KB
  9. pygame-1.9.6/buildconfig/Setup_Darwin.in 172B
  10. pygame-1.9.6/buildconfig/Setup_Unix.in 115B
  11. pygame-1.9.6/buildconfig/Setup_Win_Common.in 70B
  12. pygame-1.9.6/buildconfig/__init__.py
  13. pygame-1.9.6/buildconfig/__main__.py 32B
  14. pygame-1.9.6/buildconfig/__pycache__/
  15. pygame-1.9.6/buildconfig/__pycache__/__init__.cpython-37.pyc 151B
  16. pygame-1.9.6/buildconfig/__pycache__/config.cpython-37.pyc 5.45KB
  17. pygame-1.9.6/buildconfig/__pycache__/config_darwin.cpython-37.pyc 5.29KB
  18. pygame-1.9.6/buildconfig/__pycache__/config_unix.cpython-37.pyc 8.13KB
  19. pygame-1.9.6/buildconfig/__pycache__/msysio.cpython-37.pyc 1.33KB
  20. pygame-1.9.6/buildconfig/bundle_docs.py 1.93KB
  21. pygame-1.9.6/buildconfig/config.py 7.27KB
  22. pygame-1.9.6/buildconfig/config_darwin.py 6.71KB
  23. pygame-1.9.6/buildconfig/config_msys.py 9.57KB
  24. pygame-1.9.6/buildconfig/config_unix.py 9.64KB
  25. pygame-1.9.6/buildconfig/config_win.py 22.84KB
  26. pygame-1.9.6/buildconfig/download_win_prebuilt.py 10.04KB
  27. pygame-1.9.6/buildconfig/makeref.py 812B
  28. pygame-1.9.6/buildconfig/msysio.py 1.23KB
  29. pygame-1.9.6/buildconfig/obj/
  30. pygame-1.9.6/buildconfig/obj/win32/
  31. pygame-1.9.6/buildconfig/obj/win32/scale_mmx.obj 3.78KB
  32. pygame-1.9.6/buildconfig/obj/win64/
  33. pygame-1.9.6/buildconfig/obj/win64/scale_mmx.obj 4.24KB
  34. pygame-1.9.6/buildconfig/pygame-stubs/
  35. pygame-1.9.6/buildconfig/pygame-stubs/.flake8 1001B
  36. pygame-1.9.6/buildconfig/pygame-stubs/__init__.pyi 355B
  37. pygame-1.9.6/buildconfig/pygame-stubs/bufferproxy.pyi 288B
  38. pygame-1.9.6/buildconfig/pygame-stubs/color.pyi 675B
  39. pygame-1.9.6/buildconfig/pygame-stubs/event.pyi 1013B
  40. pygame-1.9.6/buildconfig/pygame-stubs/joystick.pyi 766B
  41. pygame-1.9.6/buildconfig/pygame-stubs/rect.pyi 2.82KB
  42. pygame-1.9.6/buildconfig/pygame-stubs/surface.pyi 3.56KB
  43. pygame-1.9.6/buildconfig/setup_win_common.py 1.06KB
  44. pygame-1.9.6/buildconfig/version.py.in 1.82KB
  45. pygame-1.9.6/buildconfig/vstools.py 2.02KB
  46. pygame-1.9.6/docs/
  47. pygame-1.9.6/docs/LGPL 25.81KB
  48. pygame-1.9.6/docs/__init__.py 287B
  49. pygame-1.9.6/docs/__main__.py 750B
  50. pygame-1.9.6/docs/howto_release_pygame.txt 2.15KB
  51. pygame-1.9.6/docs/logos.html 1.57KB
  52. pygame-1.9.6/docs/pygame_logo.gif 24.53KB
  53. pygame-1.9.6/docs/pygame_powered.gif 9.93KB
  54. pygame-1.9.6/docs/pygame_small.gif 10.04KB
  55. pygame-1.9.6/docs/pygame_tiny.gif 5.36KB
  56. pygame-1.9.6/docs/reST/
  57. pygame-1.9.6/docs/reST/_static/
  58. pygame-1.9.6/docs/reST/_static/pygame.ico 1.05KB
  59. pygame-1.9.6/docs/reST/_static/pygame_tiny.png 13.75KB
  60. pygame-1.9.6/docs/reST/_static/reset.css 1.06KB
  61. pygame-1.9.6/docs/reST/_static/tooltip.css 798B
  62. pygame-1.9.6/docs/reST/_templates/
  63. pygame-1.9.6/docs/reST/_templates/header.h 1.05KB
  64. pygame-1.9.6/docs/reST/c_api/
  65. pygame-1.9.6/docs/reST/c_api/base.rst 6.16KB
  66. pygame-1.9.6/docs/reST/c_api/bufferproxy.rst 1.54KB
  67. pygame-1.9.6/docs/reST/c_api/cdrom.rst 1.06KB
  68. pygame-1.9.6/docs/reST/c_api/color.rst 1.49KB
  69. pygame-1.9.6/docs/reST/c_api/display.rst 1.16KB
  70. pygame-1.9.6/docs/reST/c_api/event.rst 1.39KB
  71. pygame-1.9.6/docs/reST/c_api/freetype.rst 1.25KB
  72. pygame-1.9.6/docs/reST/c_api/mixer.rst 2.1KB
  73. pygame-1.9.6/docs/reST/c_api/rect.rst 2.01KB
  74. pygame-1.9.6/docs/reST/c_api/rwobject.rst 2.51KB
  75. pygame-1.9.6/docs/reST/c_api/surface.rst 1.89KB
  76. pygame-1.9.6/docs/reST/c_api/surflock.rst 2.61KB
  77. pygame-1.9.6/docs/reST/c_api/version.rst 674B
  78. pygame-1.9.6/docs/reST/c_api.rst 107B
  79. pygame-1.9.6/docs/reST/common.txt 224B
  80. pygame-1.9.6/docs/reST/conf.py 7.36KB
  81. pygame-1.9.6/docs/reST/ext/
  82. pygame-1.9.6/docs/reST/ext/__init__.py 23B
  83. pygame-1.9.6/docs/reST/ext/boilerplate.py 10.47KB
  84. pygame-1.9.6/docs/reST/ext/customversion.py 726B
  85. pygame-1.9.6/docs/reST/ext/edit_on_github.py 1.2KB
  86. pygame-1.9.6/docs/reST/ext/headers.py 1.58KB
  87. pygame-1.9.6/docs/reST/ext/indexer.py 7.26KB
  88. pygame-1.9.6/docs/reST/ext/utils.py 3.98KB
  89. pygame-1.9.6/docs/reST/filepaths.rst 1.03KB
  90. pygame-1.9.6/docs/reST/index.rst 5.04KB
  91. pygame-1.9.6/docs/reST/ref/
  92. pygame-1.9.6/docs/reST/ref/bufferproxy.rst 4.62KB
  93. pygame-1.9.6/docs/reST/ref/camera.rst 6.54KB
  94. pygame-1.9.6/docs/reST/ref/cdrom.rst 8.59KB
  95. pygame-1.9.6/docs/reST/ref/code_examples/
  96. pygame-1.9.6/docs/reST/ref/code_examples/draw_module_example.png 17.35KB
  97. pygame-1.9.6/docs/reST/ref/code_examples/draw_module_example.py 2.79KB
  98. pygame-1.9.6/docs/reST/ref/code_examples/joystick_calls.png 22.97KB
  99. pygame-1.9.6/docs/reST/ref/code_examples/joystick_calls.py 4.12KB
  100. pygame-1.9.6/docs/reST/ref/color.rst 6.19KB
  101. pygame-1.9.6/docs/reST/ref/common.txt 28B
  102. pygame-1.9.6/docs/reST/ref/cursors.rst 4.12KB
  103. pygame-1.9.6/docs/reST/ref/display.rst 18.67KB
  104. pygame-1.9.6/docs/reST/ref/draw.rst 5.49KB
  105. pygame-1.9.6/docs/reST/ref/event.rst 12.88KB
  106. pygame-1.9.6/docs/reST/ref/examples.rst 14.79KB
  107. pygame-1.9.6/docs/reST/ref/font.rst 11.46KB
  108. pygame-1.9.6/docs/reST/ref/freetype.rst 29.5KB
  109. pygame-1.9.6/docs/reST/ref/gfxdraw.rst 7KB
  110. pygame-1.9.6/docs/reST/ref/image.rst 5.56KB
  111. pygame-1.9.6/docs/reST/ref/joystick.rst 9.26KB
  112. pygame-1.9.6/docs/reST/ref/key.rst 10.52KB
  113. pygame-1.9.6/docs/reST/ref/locals.rst 902B
  114. pygame-1.9.6/docs/reST/ref/mask.rst 9.42KB
  115. pygame-1.9.6/docs/reST/ref/math.rst 18.61KB
  116. pygame-1.9.6/docs/reST/ref/midi.rst 13.56KB
  117. pygame-1.9.6/docs/reST/ref/mixer.rst 20.64KB
  118. pygame-1.9.6/docs/reST/ref/mouse.rst 5.51KB
  119. pygame-1.9.6/docs/reST/ref/music.rst 6.43KB
  120. pygame-1.9.6/docs/reST/ref/overlay.rst 2.43KB
  121. pygame-1.9.6/docs/reST/ref/pixelarray.rst 9.96KB
  122. pygame-1.9.6/docs/reST/ref/pixelcopy.rst 4.16KB
  123. pygame-1.9.6/docs/reST/ref/pygame.rst 7.98KB
  124. pygame-1.9.6/docs/reST/ref/rect.rst 8.94KB
  125. pygame-1.9.6/docs/reST/ref/scrap.rst 7.93KB
  126. pygame-1.9.6/docs/reST/ref/sndarray.rst 2.86KB
  127. pygame-1.9.6/docs/reST/ref/sprite.rst 27.63KB
  128. pygame-1.9.6/docs/reST/ref/surface.rst 33.4KB
  129. pygame-1.9.6/docs/reST/ref/surfarray.rst 8.85KB
  130. pygame-1.9.6/docs/reST/ref/tests.rst 4.46KB
  131. pygame-1.9.6/docs/reST/ref/time.rst 4.77KB
  132. pygame-1.9.6/docs/reST/ref/touch.rst 1.91KB
  133. pygame-1.9.6/docs/reST/ref/transform.rst 10.21KB
  134. pygame-1.9.6/docs/reST/themes/
  135. pygame-1.9.6/docs/reST/themes/classic/
  136. pygame-1.9.6/docs/reST/themes/classic/elements.html 3.55KB
  137. pygame-1.9.6/docs/reST/themes/classic/page.html 157B
  138. pygame-1.9.6/docs/reST/themes/classic/static/
  139. pygame-1.9.6/docs/reST/themes/classic/static/pygame.css_t 13.14KB
  140. pygame-1.9.6/docs/reST/themes/classic/theme.conf 1.08KB
  141. pygame-1.9.6/docs/reST/tut/
  142. pygame-1.9.6/docs/reST/tut/CameraIntro.rst 9.95KB
  143. pygame-1.9.6/docs/reST/tut/ChimpLineByLine.rst 20.97KB
  144. pygame-1.9.6/docs/reST/tut/DisplayModes.rst 8.13KB
  145. pygame-1.9.6/docs/reST/tut/ImportInit.rst 2.69KB
  146. pygame-1.9.6/docs/reST/tut/MakeGames.rst 5.89KB
  147. pygame-1.9.6/docs/reST/tut/MoveIt.rst 19.3KB
  148. pygame-1.9.6/docs/reST/tut/PygameIntro.rst 12.64KB
  149. pygame-1.9.6/docs/reST/tut/SpriteIntro.rst 20.9KB
  150. pygame-1.9.6/docs/reST/tut/SurfarrayIntro-rest 4.95KB
  151. pygame-1.9.6/docs/reST/tut/SurfarrayIntro.rst 21.41KB
  152. pygame-1.9.6/docs/reST/tut/camera_average.jpg 20.39KB
  153. pygame-1.9.6/docs/reST/tut/camera_background.jpg 7.32KB
  154. pygame-1.9.6/docs/reST/tut/camera_green.jpg 9.98KB
  155. pygame-1.9.6/docs/reST/tut/camera_hsv.jpg 35.81KB
  156. pygame-1.9.6/docs/reST/tut/camera_mask.jpg 18.34KB
  157. pygame-1.9.6/docs/reST/tut/camera_rgb.jpg 31.73KB
  158. pygame-1.9.6/docs/reST/tut/camera_thresh.jpg 4.24KB
  159. pygame-1.9.6/docs/reST/tut/camera_thresholded.jpg 23.12KB
  160. pygame-1.9.6/docs/reST/tut/camera_yuv.jpg 19.63KB
  161. pygame-1.9.6/docs/reST/tut/chimp.py.rst 179B
  162. pygame-1.9.6/docs/reST/tut/chimpshot.gif 10.8KB
  163. pygame-1.9.6/docs/reST/tut/common.txt 138B
  164. pygame-1.9.6/docs/reST/tut/intro_ball.gif 4.9KB
  165. pygame-1.9.6/docs/reST/tut/intro_blade.jpg 2.57KB
  166. pygame-1.9.6/docs/reST/tut/intro_freedom.jpg 6.88KB
  167. pygame-1.9.6/docs/reST/tut/newbieguide.rst 20.86KB
  168. pygame-1.9.6/docs/reST/tut/surfarray.png 49.64KB
  169. pygame-1.9.6/docs/reST/tut/surfarray_allblack.png 125B
  170. pygame-1.9.6/docs/reST/tut/surfarray_flipped.png 49.64KB
  171. pygame-1.9.6/docs/reST/tut/surfarray_redimg.png 22.89KB
  172. pygame-1.9.6/docs/reST/tut/surfarray_rgbarray.png 49.7KB
  173. pygame-1.9.6/docs/reST/tut/surfarray_scaledown.png 14.75KB
  174. pygame-1.9.6/docs/reST/tut/surfarray_scaleup.png 66.17KB
  175. pygame-1.9.6/docs/reST/tut/surfarray_soften.png 46.43KB
  176. pygame-1.9.6/docs/reST/tut/surfarray_striped.png 392B
  177. pygame-1.9.6/docs/reST/tut/surfarray_xfade.png 40.85KB
  178. pygame-1.9.6/docs/reST/tut/tom_basic.png 5.02KB
  179. pygame-1.9.6/docs/reST/tut/tom_event-flowchart.png 5.4KB
  180. pygame-1.9.6/docs/reST/tut/tom_formulae.png 6.6KB
  181. pygame-1.9.6/docs/reST/tut/tom_games2.rst 6.5KB
  182. pygame-1.9.6/docs/reST/tut/tom_games3.rst 5.22KB
  183. pygame-1.9.6/docs/reST/tut/tom_games4.rst 7.17KB
  184. pygame-1.9.6/docs/reST/tut/tom_games5.rst 6.53KB
  185. pygame-1.9.6/docs/reST/tut/tom_games6.rst 13.59KB
  186. pygame-1.9.6/docs/reST/tut/tom_radians.png 17KB
  187. pygame-1.9.6/docs/ref/
  188. pygame-1.9.6/docs/ref/docscomments.json 435.16KB
  189. pygame-1.9.6/examples/
  190. pygame-1.9.6/examples/__init__.py
  191. pygame-1.9.6/examples/aacircle.py 909B
  192. pygame-1.9.6/examples/aliens.py 10.47KB
  193. pygame-1.9.6/examples/arraydemo.py 3.63KB
  194. pygame-1.9.6/examples/audiocapture.py 1.25KB
  195. pygame-1.9.6/examples/blend_fill.py 3.03KB
  196. pygame-1.9.6/examples/blit_blends.py 5.77KB
  197. pygame-1.9.6/examples/camera.py 2.69KB
  198. pygame-1.9.6/examples/chimp.py 5.88KB
  199. pygame-1.9.6/examples/cursors.py 2.99KB
  200. pygame-1.9.6/examples/data/
  201. pygame-1.9.6/examples/data/alien1.gif 3.74KB
  202. pygame-1.9.6/examples/data/alien1.jpg 3.03KB
  203. pygame-1.9.6/examples/data/alien1.png 3.44KB
  204. pygame-1.9.6/examples/data/alien2.gif 3.74KB
  205. pygame-1.9.6/examples/data/alien2.png 3.44KB
  206. pygame-1.9.6/examples/data/alien3.gif 3.74KB
  207. pygame-1.9.6/examples/data/alien3.png 3.44KB
  208. pygame-1.9.6/examples/data/arraydemo.bmp 75.05KB
  209. pygame-1.9.6/examples/data/asprite.bmp 578B
  210. pygame-1.9.6/examples/data/background.gif 8.92KB
  211. pygame-1.9.6/examples/data/blue.mpg 6KB
  212. pygame-1.9.6/examples/data/bomb.gif 1.13KB
  213. pygame-1.9.6/examples/data/boom.wav 12.27KB
  214. pygame-1.9.6/examples/data/brick.png 170B
  215. pygame-1.9.6/examples/data/car_door.wav 3.82KB
  216. pygame-1.9.6/examples/data/chimp.bmp 5.37KB
  217. pygame-1.9.6/examples/data/city.png 143B
  218. pygame-1.9.6/examples/data/danger.gif 2.7KB
  219. pygame-1.9.6/examples/data/explosion1.gif 6.36KB
  220. pygame-1.9.6/examples/data/fist.bmp 4.28KB
  221. pygame-1.9.6/examples/data/house_lo.mp3 113.59KB
  222. pygame-1.9.6/examples/data/house_lo.ogg 30.6KB
  223. pygame-1.9.6/examples/data/house_lo.wav 76.63KB
  224. pygame-1.9.6/examples/data/liquid.bmp 11.46KB
  225. pygame-1.9.6/examples/data/midikeys.png 19.21KB
  226. pygame-1.9.6/examples/data/oldplayer.gif 1.05KB
  227. pygame-1.9.6/examples/data/player1.gif 3.39KB
  228. pygame-1.9.6/examples/data/punch.wav 4.08KB
  229. pygame-1.9.6/examples/data/sans.ttf 129.97KB
  230. pygame-1.9.6/examples/data/secosmic_lo.wav 18.26KB
  231. pygame-1.9.6/examples/data/shot.gif 129B
  232. pygame-1.9.6/examples/data/static.png 1.17KB
  233. pygame-1.9.6/examples/data/whiff.wav 5.71KB
  234. pygame-1.9.6/examples/data/yuv_1.pgm 634.51KB
  235. pygame-1.9.6/examples/dropevent.py 2.06KB
  236. pygame-1.9.6/examples/eventlist.py 3.59KB
  237. pygame-1.9.6/examples/fastevents.py 2.82KB
  238. pygame-1.9.6/examples/fonty.py 2.48KB
  239. pygame-1.9.6/examples/freetype_misc.py 3.46KB
  240. pygame-1.9.6/examples/glcube.py 3.32KB
  241. pygame-1.9.6/examples/headless_no_windows_needed.py 1.3KB
  242. pygame-1.9.6/examples/liquid.py 2.46KB
  243. pygame-1.9.6/examples/macosx/
  244. pygame-1.9.6/examples/macosx/aliens_app_example/
  245. pygame-1.9.6/examples/macosx/aliens_app_example/English.lproj/
  246. pygame-1.9.6/examples/macosx/aliens_app_example/English.lproj/MainMenu.nib/
  247. pygame-1.9.6/examples/macosx/aliens_app_example/English.lproj/MainMenu.nib/JavaCompiling.plist 278B
  248. pygame-1.9.6/examples/macosx/aliens_app_example/English.lproj/MainMenu.nib/_MainMenu_EOArchive_English.java 5.66KB
  249. pygame-1.9.6/examples/macosx/aliens_app_example/English.lproj/MainMenu.nib/classes.nib 306B
  250. pygame-1.9.6/examples/macosx/aliens_app_example/English.lproj/MainMenu.nib/info.nib 566B
  251. pygame-1.9.6/examples/macosx/aliens_app_example/English.lproj/MainMenu.nib/keyedobjects.nib 9.22KB
  252. pygame-1.9.6/examples/macosx/aliens_app_example/English.lproj/aliens.icns 7.07KB
  253. pygame-1.9.6/examples/macosx/aliens_app_example/README.txt 432B
  254. pygame-1.9.6/examples/macosx/aliens_app_example/aliens.py 9.41KB
  255. pygame-1.9.6/examples/macosx/aliens_app_example/setup.py 578B
  256. pygame-1.9.6/examples/macosx/macfont.py 4.38KB
  257. pygame-1.9.6/examples/mask.py 5.42KB
  258. pygame-1.9.6/examples/midi.py 29.29KB
  259. pygame-1.9.6/examples/moveit.py 1.79KB
  260. pygame-1.9.6/examples/oldalien.py 6.56KB
  261. pygame-1.9.6/examples/overlay.py 1.36KB
  262. pygame-1.9.6/examples/pixelarray.py 3.24KB
  263. pygame-1.9.6/examples/playmus.py 4.46KB
  264. pygame-1.9.6/examples/prevent_display_stretching.py 2.68KB
  265. pygame-1.9.6/examples/readme.txt 2.63KB
  266. pygame-1.9.6/examples/scaletest.py 4.58KB
  267. pygame-1.9.6/examples/scrap_clipboard.py 2.86KB
  268. pygame-1.9.6/examples/scroll.py 6.63KB
  269. pygame-1.9.6/examples/sound.py 1.33KB
  270. pygame-1.9.6/examples/sound_array_demos.py 6.44KB
  271. pygame-1.9.6/examples/stars.py 2.43KB
  272. pygame-1.9.6/examples/testsprite.py 6.75KB
  273. pygame-1.9.6/examples/textinput.py 5.22KB
  274. pygame-1.9.6/examples/vgrade.py 3.24KB
  275. pygame-1.9.6/examples/video.py 2.75KB
  276. pygame-1.9.6/setup.py 23.65KB
  277. pygame-1.9.6/src_c/
  278. pygame-1.9.6/src_c/.clang-format 408B
  279. pygame-1.9.6/src_c/SDL_gfx/
  280. pygame-1.9.6/src_c/SDL_gfx/SDL_gfxPrimitives.c 157.54KB
  281. pygame-1.9.6/src_c/SDL_gfx/SDL_gfxPrimitives.h 9.84KB
  282. pygame-1.9.6/src_c/SDL_gfx/SDL_gfxPrimitives_font.h 54.59KB
  283. pygame-1.9.6/src_c/_camera.c 63.18KB
  284. pygame-1.9.6/src_c/_camera.h 840B
  285. pygame-1.9.6/src_c/_freetype.c 62.72KB
  286. pygame-1.9.6/src_c/_pygame.h 27.74KB
  287. pygame-1.9.6/src_c/_sdl2/
  288. pygame-1.9.6/src_c/_sdl2/audio.c 880.21KB
  289. pygame-1.9.6/src_c/_sdl2/audio.pxd 2.24KB
  290. pygame-1.9.6/src_c/_sdl2/audio.pyx 7.33KB
  291. pygame-1.9.6/src_c/_sdl2/sdl2.c 182.52KB
  292. pygame-1.9.6/src_c/_sdl2/sdl2.pxd 1.25KB
  293. pygame-1.9.6/src_c/_sdl2/sdl2.pyx 1.55KB
  294. pygame-1.9.6/src_c/_sdl2/touch.c 4.6KB
  295. pygame-1.9.6/src_c/_sdl2/video.c 709.86KB
  296. pygame-1.9.6/src_c/_sdl2/video.pxd 12.47KB
  297. pygame-1.9.6/src_c/_sdl2/video.pyx 26.34KB
  298. pygame-1.9.6/src_c/_surface.h 958B
  299. pygame-1.9.6/src_c/alphablit.c 95.4KB
  300. pygame-1.9.6/src_c/base.c 58.8KB
  301. pygame-1.9.6/src_c/bitmask.c 34.49KB
  302. pygame-1.9.6/src_c/bitmask.h 4.67KB
  303. pygame-1.9.6/src_c/bufferproxy.c 25.61KB
  304. pygame-1.9.6/src_c/camera.h 6.79KB
  305. pygame-1.9.6/src_c/camera_mac.m 12.56KB
  306. pygame-1.9.6/src_c/camera_v4l2.c 21.3KB
  307. pygame-1.9.6/src_c/cdrom.c 16.91KB
  308. pygame-1.9.6/src_c/color.c 52.23KB
  309. pygame-1.9.6/src_c/constants.c 23.62KB
  310. pygame-1.9.6/src_c/display.c 61.78KB
  311. pygame-1.9.6/src_c/doc/
  312. pygame-1.9.6/src_c/doc/README.rst 174B
  313. pygame-1.9.6/src_c/doc/bufferproxy_doc.h 1.12KB
  314. pygame-1.9.6/src_c/doc/camera_doc.h 2.53KB
  315. pygame-1.9.6/src_c/doc/cdrom_doc.h 3.97KB
  316. pygame-1.9.6/src_c/doc/color_doc.h 2.25KB
  317. pygame-1.9.6/src_c/doc/cursors_doc.h 822B
  318. pygame-1.9.6/src_c/doc/display_doc.h 5.4KB
  319. pygame-1.9.6/src_c/doc/draw_doc.h 2.26KB
  320. pygame-1.9.6/src_c/doc/event_doc.h 3.83KB
  321. pygame-1.9.6/src_c/doc/examples_doc.h 6.41KB
  322. pygame-1.9.6/src_c/doc/font_doc.h 4.12KB
  323. pygame-1.9.6/src_c/doc/freetype_doc.h 10.15KB
  324. pygame-1.9.6/src_c/doc/gfxdraw_doc.h 4.41KB
  325. pygame-1.9.6/src_c/doc/image_doc.h 1.56KB
  326. pygame-1.9.6/src_c/doc/joystick_doc.h 3.45KB
  327. pygame-1.9.6/src_c/doc/key_doc.h 2.17KB
  328. pygame-1.9.6/src_c/doc/locals_doc.h 211B
  329. pygame-1.9.6/src_c/doc/mask_doc.h 5.02KB
  330. pygame-1.9.6/src_c/doc/math_doc.h 13.32KB
  331. pygame-1.9.6/src_c/doc/midi_doc.h 6.37KB
  332. pygame-1.9.6/src_c/doc/mixer_doc.h 7.51KB
  333. pygame-1.9.6/src_c/doc/mouse_doc.h 1.79KB
  334. pygame-1.9.6/src_c/doc/movie_doc.h 2.97KB
  335. pygame-1.9.6/src_c/doc/music_doc.h 2.9KB
  336. pygame-1.9.6/src_c/doc/overlay_doc.h 952B
  337. pygame-1.9.6/src_c/doc/pixelarray_doc.h 2.69KB
  338. pygame-1.9.6/src_c/doc/pixelcopy_doc.h 1.29KB
  339. pygame-1.9.6/src_c/doc/pygame_doc.h 2.84KB
  340. pygame-1.9.6/src_c/doc/rect_doc.h 4.09KB
  341. pygame-1.9.6/src_c/doc/scrap_doc.h 1.79KB
  342. pygame-1.9.6/src_c/doc/sndarray_doc.h 1.46KB
  343. pygame-1.9.6/src_c/doc/sprite_doc.h 12.91KB
  344. pygame-1.9.6/src_c/doc/surface_doc.h 10.93KB
  345. pygame-1.9.6/src_c/doc/surfarray_doc.h 3.52KB
  346. pygame-1.9.6/src_c/doc/tests_doc.h 404B
  347. pygame-1.9.6/src_c/doc/time_doc.h 1.99KB
  348. pygame-1.9.6/src_c/doc/touch_doc.h 1.12KB
  349. pygame-1.9.6/src_c/doc/transform_doc.h 3.73KB
  350. pygame-1.9.6/src_c/draw.c 53.09KB
  351. pygame-1.9.6/src_c/event.c 53.03KB
  352. pygame-1.9.6/src_c/fastevent.c 10KB
  353. pygame-1.9.6/src_c/fastevents.c 3.6KB
  354. pygame-1.9.6/src_c/fastevents.h 1.6KB
  355. pygame-1.9.6/src_c/font.c 24.41KB
  356. pygame-1.9.6/src_c/font.h 1.79KB
  357. pygame-1.9.6/src_c/freetype/
  358. pygame-1.9.6/src_c/freetype/ft_cache.c 7.8KB
  359. pygame-1.9.6/src_c/freetype/ft_layout.c 23.69KB
  360. pygame-1.9.6/src_c/freetype/ft_pixel.h 3.78KB
  361. pygame-1.9.6/src_c/freetype/ft_render.c 24.54KB
  362. pygame-1.9.6/src_c/freetype/ft_render_cb.c 36.21KB
  363. pygame-1.9.6/src_c/freetype/ft_unicode.c 5.35KB
  364. pygame-1.9.6/src_c/freetype/ft_wrap.c 14.68KB
  365. pygame-1.9.6/src_c/freetype/ft_wrap.h 13.82KB
  366. pygame-1.9.6/src_c/freetype.h 4.08KB
  367. pygame-1.9.6/src_c/gfxdraw.c 30.87KB
  368. pygame-1.9.6/src_c/image.c 48.15KB
  369. pygame-1.9.6/src_c/imageext.c 25.23KB
  370. pygame-1.9.6/src_c/joystick.c 13.84KB
  371. pygame-1.9.6/src_c/key.c 24.47KB
  372. pygame-1.9.6/src_c/mask.c 49.73KB
  373. pygame-1.9.6/src_c/mask.h 620B
  374. pygame-1.9.6/src_c/math.c 116.93KB
  375. pygame-1.9.6/src_c/mixer.c 54.78KB
  376. pygame-1.9.6/src_c/mixer.h 2.21KB
  377. pygame-1.9.6/src_c/mouse.c 7.01KB
  378. pygame-1.9.6/src_c/music.c 11.75KB
  379. pygame-1.9.6/src_c/newbuffer.c 29.04KB
  380. pygame-1.9.6/src_c/overlay.c 8.49KB
  381. pygame-1.9.6/src_c/palette.h 6.89KB
  382. pygame-1.9.6/src_c/pgarrinter.h 1.04KB
  383. pygame-1.9.6/src_c/pgbufferproxy.h 1.92KB
  384. pygame-1.9.6/src_c/pgcompat.h 5.79KB
  385. pygame-1.9.6/src_c/pgopengl.h 379B
  386. pygame-1.9.6/src_c/pixelarray.c 59.39KB
  387. pygame-1.9.6/src_c/pixelarray_methods.c 33.13KB
  388. pygame-1.9.6/src_c/pixelcopy.c 38.33KB
  389. pygame-1.9.6/src_c/pygame.h 1.22KB
  390. pygame-1.9.6/src_c/pypm.c 400.41KB
  391. pygame-1.9.6/src_c/pypm.pyx 19.97KB
  392. pygame-1.9.6/src_c/rect.c 47.74KB
  393. pygame-1.9.6/src_c/rotozoom.c 19.65KB
  394. pygame-1.9.6/src_c/rwobject.c 19.53KB
  395. pygame-1.9.6/src_c/scale.h 3.32KB
  396. pygame-1.9.6/src_c/scale2x.c 8.45KB
  397. pygame-1.9.6/src_c/scale_mmx.c 1.36KB
  398. pygame-1.9.6/src_c/scale_mmx32.c 30.63KB
  399. pygame-1.9.6/src_c/scale_mmx64.c 30.82KB
  400. pygame-1.9.6/src_c/scale_mmx64_gcc.c 29.48KB
  401. pygame-1.9.6/src_c/scale_mmx64_msvc.c 3.77KB
  402. pygame-1.9.6/src_c/scrap.c 10.23KB
  403. pygame-1.9.6/src_c/scrap.h 4.49KB
  404. pygame-1.9.6/src_c/scrap_mac.c 2.18KB
  405. pygame-1.9.6/src_c/scrap_qnx.c 6.06KB
  406. pygame-1.9.6/src_c/scrap_win.c 10.23KB
  407. pygame-1.9.6/src_c/scrap_x11.c 24.81KB
  408. pygame-1.9.6/src_c/sdlmain_osx.m 12.21KB
  409. pygame-1.9.6/src_c/surface.c 123.73KB
  410. pygame-1.9.6/src_c/surface.h 14.21KB
  411. pygame-1.9.6/src_c/surface_fill.c 30.26KB
  412. pygame-1.9.6/src_c/surflock.c 9.45KB
  413. pygame-1.9.6/src_c/time.c 13.97KB
  414. pygame-1.9.6/src_c/transform.c 91.47KB
  415. pygame-1.9.6/src_py/
  416. pygame-1.9.6/src_py/__init__.py 11.31KB
  417. pygame-1.9.6/src_py/_camera_opencv_highgui.py 2.18KB
  418. pygame-1.9.6/src_py/_camera_vidcapture.py 3.65KB
  419. pygame-1.9.6/src_py/_dummybackend.py 770B
  420. pygame-1.9.6/src_py/_numpysndarray.py 2.55KB
  421. pygame-1.9.6/src_py/_numpysurfarray.py 12.69KB
  422. pygame-1.9.6/src_py/_sdl2/
  423. pygame-1.9.6/src_py/_sdl2/__init__.py 62B
  424. pygame-1.9.6/src_py/camera.py 2.8KB
  425. pygame-1.9.6/src_py/colordict.py 23.61KB
  426. pygame-1.9.6/src_py/compat.py 3.04KB
  427. pygame-1.9.6/src_py/cursors.py 9.81KB
  428. pygame-1.9.6/src_py/draw_py.py 17.52KB
  429. pygame-1.9.6/src_py/freesansbold.ttf 96.29KB
  430. pygame-1.9.6/src_py/freetype.py 1.77KB
  431. pygame-1.9.6/src_py/ftfont.py 6.09KB
  432. pygame-1.9.6/src_py/gp2x/
  433. pygame-1.9.6/src_py/gp2x/__init__.py 559B
  434. pygame-1.9.6/src_py/gp2x/constants.py 556B
  435. pygame-1.9.6/src_py/gp2x/locals.py 38B
  436. pygame-1.9.6/src_py/locals.py 1.08KB
  437. pygame-1.9.6/src_py/macosx.py 769B
  438. pygame-1.9.6/src_py/midi.py 23.28KB
  439. pygame-1.9.6/src_py/pkgdata.py 2.21KB
  440. pygame-1.9.6/src_py/pygame.ico 142.11KB
  441. pygame-1.9.6/src_py/pygame_icon.bmp 630B
  442. pygame-1.9.6/src_py/pygame_icon.icns 52.37KB
  443. pygame-1.9.6/src_py/pygame_icon.svg 15KB
  444. pygame-1.9.6/src_py/pygame_icon.tiff 60.16KB
  445. pygame-1.9.6/src_py/sndarray.py 3.33KB
  446. pygame-1.9.6/src_py/sprite.py 54.77KB
  447. pygame-1.9.6/src_py/surfarray.py 10.02KB
  448. pygame-1.9.6/src_py/sysfont.py 13.26KB
  449. pygame-1.9.6/src_py/threads/
  450. pygame-1.9.6/src_py/threads/Py25Queue.py 7.58KB
  451. pygame-1.9.6/src_py/threads/__init__.py 8.5KB
  452. pygame-1.9.6/src_py/version.py 1.88KB
  453. pygame-1.9.6/test/
  454. pygame-1.9.6/test/README.TXT 5.15KB
  455. pygame-1.9.6/test/__init__.py 1.24KB
  456. pygame-1.9.6/test/__main__.py 3.74KB
  457. pygame-1.9.6/test/base_test.py 23.49KB
  458. pygame-1.9.6/test/blit_test.py 4.57KB
  459. pygame-1.9.6/test/bufferproxy_test.py 16.41KB
  460. pygame-1.9.6/test/camera_test.py 129B
  461. pygame-1.9.6/test/cdrom_tags.py 42B
  462. pygame-1.9.6/test/cdrom_test.py 9.74KB
  463. pygame-1.9.6/test/color_test.py 35.75KB
  464. pygame-1.9.6/test/compat_test.py 2.71KB
  465. pygame-1.9.6/test/constants_test.py 1.41KB
  466. pygame-1.9.6/test/cursors_test.py 2.43KB
  467. pygame-1.9.6/test/display_test.py 15.92KB
  468. pygame-1.9.6/test/draw_test.py 50.32KB
  469. pygame-1.9.6/test/event_test.py 10.45KB
  470. pygame-1.9.6/test/fastevent_tags.py 14B
  471. pygame-1.9.6/test/fastevent_test.py 5.28KB
  472. pygame-1.9.6/test/fixtures/
  473. pygame-1.9.6/test/fixtures/fonts/
  474. pygame-1.9.6/test/fixtures/fonts/A_PyGameMono-8.png 92B
  475. pygame-1.9.6/test/fixtures/fonts/PyGameMono-18-100dpi.bdf 1.9KB
  476. pygame-1.9.6/test/fixtures/fonts/PyGameMono-18-75dpi.bdf 1.61KB
  477. pygame-1.9.6/test/fixtures/fonts/PyGameMono-8.bdf 1.33KB
  478. pygame-1.9.6/test/fixtures/fonts/PyGameMono.otf 3.05KB
  479. pygame-1.9.6/test/fixtures/fonts/PyGameMono.sfd 6.32KB
  480. pygame-1.9.6/test/fixtures/fonts/test_fixed.otf 57.09KB
  481. pygame-1.9.6/test/fixtures/fonts/test_sans.ttf 129.97KB
  482. pygame-1.9.6/test/fixtures/fonts/u13079_PyGameMono-8.png 89B
  483. pygame-1.9.6/test/fixtures/xbm_cursors/
  484. pygame-1.9.6/test/fixtures/xbm_cursors/white_sizing.xbm 366B
  485. pygame-1.9.6/test/fixtures/xbm_cursors/white_sizing_mask.xbm 391B
  486. pygame-1.9.6/test/font_tags.py 14B
  487. pygame-1.9.6/test/font_test.py 19.25KB
  488. pygame-1.9.6/test/freetype_tags.py 183B
  489. pygame-1.9.6/test/freetype_test.py 59.04KB
  490. pygame-1.9.6/test/ftfont_tags.py 181B
  491. pygame-1.9.6/test/ftfont_test.py 534B
  492. pygame-1.9.6/test/gfxdraw_test.py 33.56KB
  493. pygame-1.9.6/test/image__save_gl_surface_test.py 1.17KB
  494. pygame-1.9.6/test/image_tags.py 132B
  495. pygame-1.9.6/test/image_test.py 20.26KB
  496. pygame-1.9.6/test/imageext_tags.py 140B
  497. pygame-1.9.6/test/imageext_test.py 2.89KB
  498. pygame-1.9.6/test/joystick_test.py 3.18KB
  499. pygame-1.9.6/test/key_test.py 2.05KB
  500. pygame-1.9.6/test/mask_test.py 73.95KB
  501. pygame-1.9.6/test/math_test.py 73.7KB
  502. pygame-1.9.6/test/midi_tags.py 27B
  503. pygame-1.9.6/test/midi_test.py 12.75KB
  504. pygame-1.9.6/test/mixer_music_tags.py 138B
  505. pygame-1.9.6/test/mixer_music_test.py 8.17KB
  506. pygame-1.9.6/test/mixer_tags.py 132B
  507. pygame-1.9.6/test/mixer_test.py 37.84KB
  508. pygame-1.9.6/test/mouse_test.py 5.48KB
  509. pygame-1.9.6/test/overlay_tags.py 66B
  510. pygame-1.9.6/test/overlay_test.py 943B
  511. pygame-1.9.6/test/pixelarray_test.py 54.87KB
  512. pygame-1.9.6/test/pixelcopy_test.py 25.46KB
  513. pygame-1.9.6/test/rect_test.py 26.8KB
  514. pygame-1.9.6/test/run_tests__tests/
  515. pygame-1.9.6/test/run_tests__tests/__init__.py 8B
  516. pygame-1.9.6/test/run_tests__tests/all_ok/
  517. pygame-1.9.6/test/run_tests__tests/all_ok/__init__.py 8B
  518. pygame-1.9.6/test/run_tests__tests/all_ok/fake_2_test.py 980B
  519. pygame-1.9.6/test/run_tests__tests/all_ok/fake_3_test.py 980B
  520. pygame-1.9.6/test/run_tests__tests/all_ok/fake_4_test.py 980B
  521. pygame-1.9.6/test/run_tests__tests/all_ok/fake_5_test.py 980B
  522. pygame-1.9.6/test/run_tests__tests/all_ok/fake_6_test.py 980B
  523. pygame-1.9.6/test/run_tests__tests/all_ok/no_assertions__ret_code_of_1__test.py 877B
  524. pygame-1.9.6/test/run_tests__tests/all_ok/zero_tests_test.py 625B
  525. pygame-1.9.6/test/run_tests__tests/everything/
  526. pygame-1.9.6/test/run_tests__tests/everything/__init__.py 8B
  527. pygame-1.9.6/test/run_tests__tests/everything/fake_2_test.py 980B
  528. pygame-1.9.6/test/run_tests__tests/everything/incomplete_todo_test.py 990B
  529. pygame-1.9.6/test/run_tests__tests/everything/magic_tag_test.py 940B
  530. pygame-1.9.6/test/run_tests__tests/everything/sleep_test.py 796B
  531. pygame-1.9.6/test/run_tests__tests/exclude/
  532. pygame-1.9.6/test/run_tests__tests/exclude/__init__.py 8B
  533. pygame-1.9.6/test/run_tests__tests/exclude/fake_2_test.py 980B
  534. pygame-1.9.6/test/run_tests__tests/exclude/invisible_tag_test.py 1006B
  535. pygame-1.9.6/test/run_tests__tests/exclude/magic_tag_test.py 940B
  536. pygame-1.9.6/test/run_tests__tests/failures1/
  537. pygame-1.9.6/test/run_tests__tests/failures1/__init__.py 8B
  538. pygame-1.9.6/test/run_tests__tests/failures1/fake_2_test.py 980B
  539. pygame-1.9.6/test/run_tests__tests/failures1/fake_3_test.py 980B
  540. pygame-1.9.6/test/run_tests__tests/failures1/fake_4_test.py 1.01KB
  541. pygame-1.9.6/test/run_tests__tests/incomplete/
  542. pygame-1.9.6/test/run_tests__tests/incomplete/__init__.py 8B
  543. pygame-1.9.6/test/run_tests__tests/incomplete/fake_2_test.py 970B
  544. pygame-1.9.6/test/run_tests__tests/incomplete/fake_3_test.py 980B
  545. pygame-1.9.6/test/run_tests__tests/incomplete_todo/
  546. pygame-1.9.6/test/run_tests__tests/incomplete_todo/__init__.py 8B
  547. pygame-1.9.6/test/run_tests__tests/incomplete_todo/fake_2_test.py 990B
  548. pygame-1.9.6/test/run_tests__tests/incomplete_todo/fake_3_test.py 980B
  549. pygame-1.9.6/test/run_tests__tests/infinite_loop/
  550. pygame-1.9.6/test/run_tests__tests/infinite_loop/__init__.py 8B
  551. pygame-1.9.6/test/run_tests__tests/infinite_loop/fake_1_test.py 987B
  552. pygame-1.9.6/test/run_tests__tests/infinite_loop/fake_2_test.py 980B
  553. pygame-1.9.6/test/run_tests__tests/print_stderr/
  554. pygame-1.9.6/test/run_tests__tests/print_stderr/__init__.py 8B
  555. pygame-1.9.6/test/run_tests__tests/print_stderr/fake_2_test.py 980B
  556. pygame-1.9.6/test/run_tests__tests/print_stderr/fake_3_test.py 1.01KB
  557. pygame-1.9.6/test/run_tests__tests/print_stderr/fake_4_test.py 1.01KB
  558. pygame-1.9.6/test/run_tests__tests/print_stdout/
  559. pygame-1.9.6/test/run_tests__tests/print_stdout/__init__.py 8B
  560. pygame-1.9.6/test/run_tests__tests/print_stdout/fake_2_test.py 980B
  561. pygame-1.9.6/test/run_tests__tests/print_stdout/fake_3_test.py 1.07KB
  562. pygame-1.9.6/test/run_tests__tests/print_stdout/fake_4_test.py 1.01KB
  563. pygame-1.9.6/test/run_tests__tests/run_tests__test.py 4.18KB
  564. pygame-1.9.6/test/run_tests__tests/timeout/
  565. pygame-1.9.6/test/run_tests__tests/timeout/__init__.py 8B
  566. pygame-1.9.6/test/run_tests__tests/timeout/fake_2_test.py 980B
  567. pygame-1.9.6/test/run_tests__tests/timeout/sleep_test.py 797B
  568. pygame-1.9.6/test/rwobject_test.py 3.77KB
  569. pygame-1.9.6/test/scrap_tags.py 417B
  570. pygame-1.9.6/test/scrap_test.py 8.82KB
  571. pygame-1.9.6/test/sndarray_tags.py 190B
  572. pygame-1.9.6/test/sndarray_test.py 6.68KB
  573. pygame-1.9.6/test/sprite_test.py 42.3KB
  574. pygame-1.9.6/test/surface_test.py 97.79KB
  575. pygame-1.9.6/test/surfarray_tags.py 260B
  576. pygame-1.9.6/test/surfarray_test.py 24.86KB
  577. pygame-1.9.6/test/surflock_test.py 4.61KB
  578. pygame-1.9.6/test/sysfont_test.py 798B
  579. pygame-1.9.6/test/test_test_.py 25B
  580. pygame-1.9.6/test/test_utils/
  581. pygame-1.9.6/test/test_utils/__init__.py 5.7KB
  582. pygame-1.9.6/test/test_utils/arrinter.py 14.88KB
  583. pygame-1.9.6/test/test_utils/async_sub.py 8.9KB
  584. pygame-1.9.6/test/test_utils/buftools.py 23.33KB
  585. pygame-1.9.6/test/test_utils/endian.py 493B
  586. pygame-1.9.6/test/test_utils/png.py 147.67KB
  587. pygame-1.9.6/test/test_utils/run_tests.py 12KB
  588. pygame-1.9.6/test/test_utils/test_machinery.py 2.35KB
  589. pygame-1.9.6/test/test_utils/test_runner.py 7.55KB
  590. pygame-1.9.6/test/threads_test.py 4.94KB
  591. pygame-1.9.6/test/time_test.py 6.75KB
  592. pygame-1.9.6/test/touch_tags.py 28B
  593. pygame-1.9.6/test/touch_test.py 1.17KB
  594. pygame-1.9.6/test/transform_test.py 38.7KB
  595. pygame-1.9.6/test/util/
  596. pygame-1.9.6/test/util/gen_stubs.py 10.06KB
  597. pygame-1.9.6/test/util/gen_stubs_test.py 275B
  598. pygame-1.9.6/test/util/relative_indentation.py 3.62KB
  599. pygame-1.9.6/test/util/svn_log_to_whatsnew.py 2.27KB
  600. pygame-1.9.6/test/version_test.py 1.31KB

资源介绍:

pygame-1.9.6.zip
================================================================================ = README FOR PYGAME TESTS = =========================== ================================================================================ = run_tests.py = ================ The test runner for PyGame was developed for these purposes: * Per process isolation of test modules * Ability to tag tests for exclusion (interactive tests etc) * Record timings of tests It does this by altering the behaviour of unittest at run time. As much as possible each individual module was left to be fully compatible with the standard unittest. If an individual module is run, eg ``python test/color_test.py``, then it will run an unmodified version of unittest. ( unittest.main() ) ================================================================================ = Creating New Test Modules = ============================= *** NOTE *** Be sure to import test_utils first at the top of your file, this will set the sys.path required for test.unittest to run, otherwise run_tests.py will not work properly import test_utils import test.unittest as unittest ================================================================================ = Writing New Tests = ===================== See test/util/gen_stubs.py for automatic creation of test stubs Follow the naming convention ================================================================================ = gen_stubs.py = ================ trunk/test/util/gen_stubs.py The gen_stubs.py utility will inspect pygame, and compile stubs of each of the module's callables (funcs, methods, getter/setters). It will include in the test's comment the __doc__ and the documentation found in the relevant xxxx.doc files. There is a naming convention in place that maps test names to callables in a one to one manner. If there are no untested (or unstubbed) callables then gen_stubs.py will output nothing. gen_stubs.py --help gen_stubs.py module -d >> ../test_module_to_append_to.py You will need to manually merge the stubs into relevant TestCases. ================================================================================ = Test Naming Convention = ========================== This convention is in place so the stub generator can tell what has already been tested and for other introspection purposes. Each module in the pygame package has a corresponding test module in the trunk/test directory. pygame.color : color_test.py Each class has corresponding TestCase[s] in form of $Class + "Type" # TC[:TC.rindex('Type')] pygame.color.Color : color_test.ColorTypeTest pygame.color.Color : color_test.ColorTypeTestOtherAspect *** NOTE *** Use the names of the instantiator helper functions: eg pygame.cdrom.CD and not pygame.cdrom.CDType Each test should be named in the form, test_$funcname__$comment Surface.blit : test_blit__raises_exception_if_locked ================================================================================ = Tagging = =========== There are three levels of tagging available, module level, TestCase level and individual test level. For class and module level tagging assign a tag attribute __tags__ = [] Module Level Tags ----------------- Include the module level tags in: 'some_module_tags.py' Where the module name is 'some_module' which has its tests in some_module_test.py This allows some modules to be excluded without loading some code in the first place. # some_module_test.py __tags__ = ['display', 'interactive'] Tags are inherited by children, so all TestCases, and thus tests will inherit these module level tags. Class Level Tags ---------------- If you want to override a specifig tag then you can use negation. class SomeTest(unittest.TestCase): __tags__ = ['-interactive'] Test Level Tags --------------- The tags for individual tests are specified in the __doc__ for the test. format : |Tags:comma,separated,tags| def test_something__about_something(self): """ |Tags:interactive,some_other_tag| """ *** NOTE *** By default 'interactive' tags are not run run_tests.py --exclude display,slow for exclusion of tags However if you do python test/some_module_test.py all of the tests will run. See run_tests.py --help for more details. ================================================================================ = test_utils.py = ================= This contains utility routines for common testing needs as well as sets the sys.path required for test.unittest to work. some convenience functions: question(q) Will ask q and return True if they answered yes prompt(p) Will notify the user of p and then prompt them to "press enter to continue" trunk_relative_path(pth) Will return a normalized relative path, relative to the test_module eg trunk_relative_path('examples\\data\\alien.jpg') will work on linux This is so the test module can be run from anywhere with working paths eg ../test/color_test.py fixture_path(pth) Likewise but paths are relative to trunk\test\fixtures example_path(pth) Likewise but paths are relative to trunk\examples ================================================================================
100+评论
captcha