Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100156 > unrolled thread

Re: manually build a unittest/doctest object.

Started byVincent Davis <vincent@vincentdavis.net>
First post2015-12-08 07:04 -0700
Last post2015-12-08 07:04 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: manually build a unittest/doctest object. Vincent Davis <vincent@vincentdavis.net> - 2015-12-08 07:04 -0700

#100156 — Re: manually build a unittest/doctest object.

FromVincent Davis <vincent@vincentdavis.net>
Date2015-12-08 07:04 -0700
SubjectRe: manually build a unittest/doctest object.
Message-ID<mailman.64.1449583507.12405.python-list@python.org>
On Tue, Dec 8, 2015 at 2:06 AM, Peter Otten <__peter__@web.de> wrote:

> But why would you want to do that?


Thanks Peter, I want to do that because I want to test jupyter notebooks.
​The notebook is in JSON and I can get the source and result out but it was
unclear to me how to stick this into a test. doctest seemed the simplest
but maybe there is a better way.

I also tried something like:
assert exec("""print('hello word')""") == 'hello word'


Vincent Davis
720-301-3003

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web