Protobuf Team Bot
c172bfb4bc
Import numpy_test in upb wrapper from protobuf
...
PiperOrigin-RevId: 479637272
2 years ago
Mike Kruskal
63a4a7d74b
Bump pinned protobuf version
...
PiperOrigin-RevId: 466825011
2 years ago
Protobuf Team Bot
79b735a7d7
Make upb numpy type checks consistent with pure python and cpp.
...
PiperOrigin-RevId: 464907203
2 years ago
Mike Kruskal
17b6451684
Bumping protobuf dependency to newer commit
...
PiperOrigin-RevId: 460811319
2 years ago
Joshua Haberman
f96b569eb3
Fixes a few bugs in the descriptor mapping containers.
...
1. `for x in mapping` now yields keys rather than values, to match Python conventions and the behavior of the old library.
2. Lookup operations now correctly reject unhashable types as map keys.
3. We implement `repr()` to use the same format as `dict`
PiperOrigin-RevId: 459491734
2 years ago
Joshua Haberman
4ffeaa6a58
Fixed Python Tests by disabling the numpy test for now.
...
PiperOrigin-RevId: 452357087
3 years ago
Protobuf Team
f439bfb6d9
Enable numpy_test for upb python.
...
PiperOrigin-RevId: 450500895
3 years ago
Joshua Haberman
5ae371162d
Fixed two reference leaks in unknown field processing.
...
PiperOrigin-RevId: 449248186
3 years ago
Joshua Haberman
a60e9a379e
Fixed the mingw build by adding compatibility code for vsnprintf()
...
PiperOrigin-RevId: 448611947
3 years ago
Joshua Haberman
3e75131bc1
Fixed Python test by implementing RichCompare() for RepeatedCompositeContainer.
...
PiperOrigin-RevId: 447613334
3 years ago
Joshua Haberman
d72d98495d
Fixed a Python test by adding a new map insert function that distinguishes between insert and update.
...
PiperOrigin-RevId: 447214618
3 years ago
Joshua Haberman
0abdee08b4
Fixed a test by extending Pythonic initialization to handle dicts in repeated fields.
...
PiperOrigin-RevId: 447128858
3 years ago
Joshua Haberman
f70eee4cce
Fixed broken tests by implementing RepeatedScalarContainer.__reduce__.
...
PiperOrigin-RevId: 447125225
3 years ago
Joshua Haberman
b034f5d196
Fixed broken test by implementing FieldDescriptor.has_presence.
...
PiperOrigin-RevId: 447124542
3 years ago
Joshua Haberman
2eb973f53a
Added a GitHub Action to test Python+upb on Windows, and fixed a couple of bugs this revealed.
...
PiperOrigin-RevId: 446322046
3 years ago
Joshua Haberman
22c7daf1e3
Update to new upb module name.
...
PiperOrigin-RevId: 444699974
3 years ago
Joshua Haberman
f75d707ae9
A small test cleanup for Python.
...
PiperOrigin-RevId: 444586482
3 years ago
Joshua Haberman
92e06d027c
Fix for internal running of tests.
...
PiperOrigin-RevId: 444297087
3 years ago
Joshua Haberman
3e0890c055
Added support for UnknownFieldSet.
...
PiperOrigin-RevId: 443143448
3 years ago
Protobuf Team
e6e73198e3
Ignore recently added pb unit test method
...
PiperOrigin-RevId: 438590118
3 years ago
Protobuf Team
b8edc7153f
Internal change
...
PiperOrigin-RevId: 435056074
3 years ago
Joshua Haberman
ac27e3b317
Remaining fixes to make Python tests pass in google3.
3 years ago
Joshua Haberman
61f904efb7
Strip out OSS-only test for google3.
3 years ago
Joshua Haberman
0853c41b9c
Factored out common logic around our python test wrappers.
3 years ago
Matt Kulukundis
9d9e36125c
another license
3 years ago
Joshua Haberman
022ccf54d4
Updated to the HEAD version of Protobuf.
...
This brings in a few new Python tests that are failing.
3 years ago
Joshua Haberman
1c3d63dc25
Fixed a test by checking for the type of proto.
...
Also labeled a few tests for why we don't pass them.
3 years ago
Joshua Haberman
bc7b5dcadf
Ported protobuf's dtoa() function for text format and JSON.
3 years ago
Joshua Haberman
bb95a18631
Fixed a bug in the enum value map, fixing a few unit tests.
3 years ago
Joshua Haberman
e613af9e87
Fixed test by checking string argument properly.
3 years ago
Joshua Haberman
392531c14f
Fixed test by implementing FindMethodByName().
3 years ago
Joshua Haberman
3eeea895dd
Fixed FieldDescriptor test.
3 years ago
Joshua Haberman
ffdcc46390
Fixed a handful of reference leaks found in a debug build of Python ( #484 )
...
* Fixed some reference leaks.
* Fixed a few reference leaks.
* Fixed a few more memory errors.
* Fixed a few more reference leaks.
* Revert minimal_test.py.
* Re-enable limited API.
* Removed some debugging and spurious changes.
* Addressed PR comments.
3 years ago
Joshua Haberman
cfeb1ad685
Removed extraneous whitespace.
3 years ago
Joshua Haberman
62702b6cb1
Matched text format for maps.
3 years ago
Joshua Haberman
f7b1cd3b3e
Fixed TextFormat tests by providing testdata.
3 years ago
Joshua Haberman
3eae44bada
Refine the exception type when assigning improper attributes.
3 years ago
Joshua Haberman
1c37c488d4
Refined error message.
3 years ago
Joshua Haberman
8af637bcd2
Added extension field numbers.
3 years ago
Joshua Haberman
c75b39fc4d
Accept bytes object as field name.
3 years ago
Joshua Haberman
61d6eff5c4
Throw the proper errors for message initialization failure.
3 years ago
Joshua Haberman
4984a22e75
Fixed error message when serializing with required fields missing.
3 years ago
Joshua Haberman
bca2688f3a
Implemented weird behavior when a field contains invalid UTF-8.
3 years ago
Joshua Haberman
3b25e6fde3
Implemented msg.<NAME>_FIELD_NUMBER attributes.
3 years ago
Joshua Haberman
4993f7a73a
Sort ListFields() results.
3 years ago
Joshua Haberman
cbe314d91e
Implemented IsInitialized(), fixing several more tests.
3 years ago
Joshua Haberman
586f84cd30
Properly check type of integers when converting.
3 years ago
Joshua Haberman
7de3052fbb
Implemented reverse().
3 years ago
Joshua Haberman
4447d87695
Fixed tests that were missing enum type wrapper class.
3 years ago
Joshua Haberman
a2e280e865
Fixed slice assignment of unequal length.
3 years ago