V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
mengzhuo
V2EX  ›  Python

如何编写 Python 多线程 TestCase?

  •  
  •   mengzhuo · 2014-08-26 22:16:37 +08:00 · 2534 次点击
    这是一个创建于 3549 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我希望Testcase中
    setUp时能启动一个多线程的server,
    然后每个tc都能做一次访问数据,验证正确性

    这该怎么做呢....
    具体代码在gsmtpd
    https://github.com/34nm/gsmtpd/tree/dev
    第 1 条附言  ·  2014-08-27 09:04:20 +08:00
    写得有点不对……我其实对这个问题没有半点头绪……链接是我现在的代码而已……
    2 条回复    2014-08-28 16:45:42 +08:00
    4everLoveU
        1
    4everLoveU  
       2014-08-28 16:16:49 +08:00
    mengzhuo
        2
    mengzhuo  
    OP
       2014-08-28 16:45:42 +08:00
    @4everLoveU 怎么用???????????????
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4289 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:12 · PVG 12:12 · LAX 21:12 · JFK 00:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.