commit | 852eae1bc11cf53a56aaeb0bf2a8d5308df3eb4d | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Mon Jun 05 20:48:49 2006 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Mon Jun 05 20:48:49 2006 +0000 |
tree | 21eea946b06c79610231a4aa09cddbc8f80c645f | |
parent | 5332989bda5d6fbe0371283200157b7f177f5524 [diff] |
Access _struct attributes directly instead of mucking with getattr. string_reverse(): Simplify. assertRaises(): Raise TestFailed on failure. test_unpack_from(), test_pack_into(), test_pack_into_fn(): never use `assert` to test for an expected result (it doesn't test anything when Python is run with -O).