• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pfalcon / micropython
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: pfalcon
DEFAULT BRANCH: master
Repo Added 22 Jan 2017 12:37PM UTC
Files 246
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH pfalcon-20180907
branch: pfalcon-20180907
CHANGE BRANCH
x
Reset
  • pfalcon-20180907
  • README-await
  • bytecode-get-loc
  • bytesio-cow
  • cc3200-bye-uos.sep
  • cmp-readbin-writebin
  • cmp-ustruct-stream
  • codeconv-docs
  • commit-real-name
  • cpp-coveralls-0.3.12
  • cross
  • decode_codestate_size
  • docs-cpy-3.5
  • docs-pfalcon-copyright
  • docs-pyboard-geninfo-hw
  • docs-single-index
  • docs-toc-drop-ind-tables
  • docs-ver-release-same
  • embed-readme
  • esp8266-ld-update
  • esp8266-plus-32K
  • extmod-moduselect-ipoll
  • extmod-rommap
  • float-cmp-fix
  • from_bytes-default-endian
  • frozen-sizes
  • gen-pend-throw
  • getsizeof
  • inplace-ops-fallback
  • ipoll
  • libaxtls-auto
  • lookup-attr-locals_dict
  • lookup-new
  • machine-signal
  • master
  • master-sizable
  • modlwip-multicast-add
  • modlwip-poll-peer-closed
  • mpy-cross-all
  • network-basenic-doc
  • obj-slots
  • obj-slots-revamp
  • obj.h-rom-consts
  • pfalcon
  • pfalcon-20180831
  • pfalcon-20180908
  • pfalcon-20181006
  • pin-docs-remove-call
  • pin-on-off
  • pyboard-exec-device
  • readme-contrib
  • res-stream2
  • resource_stream1
  • reverse-ops
  • run-tests-features
  • signal-subclass-pin-constructor
  • soft-reboot-friendly-repl
  • spec-meth-qstrs-byte
  • spec-methods-all
  • stream-read-writebin
  • test-ffi_float-skip
  • tests-ussl-conn
  • time-pulse-no-exc
  • tinytest-check-output
  • tools-bin2res
  • trav-stkless-always
  • travis-stackless
  • ucrypto
  • unary-op-bc
  • unix-minus-m-pkg
  • ussl-axtls-nblock-reads
  • v1.10
  • v1.11
  • zephyr-1.13-updates
  • zephyr-build-test
  • zephyr-revamp-make
  • zephyr-socket
  • zephyr-socket2
  • zephyr-wip

pending completion
1336

push

travis-ci

pfalcon
py/objarray: bytearray: Allow 2nd/3rd arg to constructor.

If bytearray is constructed from str, a second argument of encoding is
required (in CPython), and third arg of Unicode error handling is allowed,
e.g.:

bytearray("str", "utf-8", "strict")

This is similar to bytes:

bytes("str", "utf-8", "strict")

This patch just allows to pass 2nd/3rd arguments to bytearray, but
doesn't try to validate them to not impact code size. (This is also
similar to how bytes constructor is handled, though it does a bit
more validation, e.g. check that in case of str arg, encoding argument
is passed.)

18176 of 18549 relevant lines covered (97.99%)

321106.16 hits per line

Relevant lines Covered
Build:
Build:
18549 RELEVANT LINES 18176 COVERED LINES
321106.16 HITS PER LINE
Source Files on pfalcon-20180907
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1336 pfalcon-20180907 py/objarray: bytearray: Allow 2nd/3rd arg to constructor. If bytearray is constructed from str, a second argument of encoding is required (in CPython), and third arg of Unicode error handling is allowed, e.g.: bytearray("str", "utf-8", "strict")... push 07 Sep 2018 03:25PM UTC pfalcon travis-ci pending completion  
See All Builds (864)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc