Open GoogleCodeExporter opened 9 years ago
Well, I think that discussion is mainly about tests, no?
Original comment by ondrej.c...@gmail.com
on 1 Oct 2008 at 11:25
Yes, the discussion is about tests. But even the tests should work with -OO.
And we
use asserts also outside tests to check values, e.g. in meshio.py. Those checks
should not be removed by any option.
Original comment by robert.c...@gmail.com
on 1 Oct 2008 at 11:39
> But even the tests should work with -OO.
I don't think so. nosetests and py.test use assert to do the tests. So it is a
defacto standard.
Original comment by ondrej.c...@gmail.com
on 1 Oct 2008 at 11:54
Actually, in files in tests/ directory is only a minority of asserts, so they
can
stay until it causes problems.
Original comment by robert.c...@gmail.com
on 1 Oct 2008 at 12:23
I was in a mood of doing mindless repetitive tasks, so I introduced assert_().
Original comment by robert.c...@gmail.com
on 2 Oct 2008 at 11:56
Migrated to http://github.com/sfepy/sfepy/issues/62
Original comment by robert.c...@gmail.com
on 30 Jan 2012 at 10:25
Original issue reported on code.google.com by
robert.c...@gmail.com
on 1 Oct 2008 at 10:47