]> granicus.if.org Git - python/commit
Access _struct attributes directly instead of mucking with getattr.
authorTim Peters <tim.peters@gmail.com>
Mon, 5 Jun 2006 20:48:49 +0000 (20:48 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 5 Jun 2006 20:48:49 +0000 (20:48 +0000)
commit852eae1bc11cf53a56aaeb0bf2a8d5308df3eb4d
tree21eea946b06c79610231a4aa09cddbc8f80c645f
parent5332989bda5d6fbe0371283200157b7f177f5524
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).
Lib/test/test_struct.py