Unfortunately, the way doctest parses apparent sessions treats blank lines as ending sessions — so output like the return value of pyobj_printer needs to be munged slightly to be tested.
不幸的是,doctest在解析显式会话时,将空行作为会话结束来处理——所以,像pyobj_printer的返回值这样的输出需要加一些保护(be munged slightly)以进行测试。
Unfortunately, the way doctest parses apparent sessions treats blank lines as ending sessions — so output like the return value of pyobj_printer needs to be munged slightly to be tested.
不幸的是,doctest在解析显式会话时,将空行作为会话结束来处理——所以,像pyobj_printer的返回值这样的输出需要加一些保护(be munged slightly)以进行测试。
应用推荐