Commit Graph

6 Commits

Author SHA1 Message Date
Matthias Görgens 7a883f4bbf Migrate away from some deprecated functions (#593)
* Migrate away from deprecated `assertRaisesRegexp`

In Python 3.12 `assertRaisesRegexp` will no longer work.  Replace it with
`assertRaisesRegex`.

* Migrate deprecated threading.currentThread

* Migrate from deprecated `threading.Thread.setDaemon`
2023-03-17 10:07:50 -04:00
James Gross a7b5f8deef Py3 cutover (try number: who knows?) (#328)
Massive cutover to python3 (baseline is 3.9.1, but is also tested/working on 3.7.x). This merge is a breaking change for any downstream consumers, as the python 2->3 strings/bytes change is central. Most APIs should still work roughly as intended, as I didn't majorly re-organize the codebase, so most APIs live where they lived before. But a changelog/migration guide will be included in the next PR for this.

This PR will constitute most if not all of the v1.0.0 release that is forthcoming soon.
2021-02-03 14:37:09 -05:00
l1berty e94cae76ec compute 'expected' bitwise result instead of exception 2015-01-01 10:02:13 -05:00
l1berty c2a78b1425 fixed setting of integers that could not be represented by the vstruct number types (and hence could not be subsequently vsEmit'd). added min/max checks in vsSetValue, added new signed number type, overrided vsSetValue in bitfield to reflect new behavior, added dynamically generated testcases, minor cleanup 2014-12-10 17:32:17 -05:00
l1berty b91148148a return field obj along with name, update tests 2014-11-18 22:31:42 -05:00
l1berty 74f320e138 add new vstruct method vsGetFieldByOffset and unittests 2014-11-18 18:39:08 -05:00