-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Test REPR_B & fix test failures #17688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jepler
wants to merge
6
commits into
micropython:master
Choose a base branch
from
jepler:test-repr-b
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
bceec06
uctypes: Fix value encoding for OBJ_REPR_B.
jepler 3e9d7cd
int_big_to_small: Bifurcate test using small_int_max.
jepler 1f77e85
tests: Use OBJ_REPR_B compatible mpy file headers.
jepler 7a7c37b
fun_call_limit: Allow to run with REPR_B.
jepler 2961a5f
objint: Fix converting float to int on REPR_B.
jepler ec07a71
ci: Add 32-bit REPR_B build.
jepler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
try: | ||
import micropython | ||
micropython.heap_lock | ||
except: | ||
print("SKIP") | ||
raise SystemExit | ||
|
||
micropython.heap_lock() | ||
try: | ||
k = (1 << 28) | ||
k = k + 20 | ||
except MemoryError: | ||
micropython.heap_unlock() | ||
print("SKIP") | ||
raise SystemExit | ||
micropython.heap_unlock() | ||
|
||
# All less than small int max. | ||
for d in (0, 27, 1<<28, -1861, -(1<<28)): | ||
i = 1<<70 | ||
print(i) | ||
j = (1<<70) + d | ||
print(j) | ||
# k should now be a small int. | ||
k = j - i | ||
print(k) | ||
|
||
# Now verify that working with k doesn't allocate (i.e. it's a small int). | ||
micropython.heap_lock() | ||
print(k + 20) | ||
print(k // 20) | ||
micropython.heap_unlock() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
1180591620717411303424 | ||
1180591620717411303424 | ||
0 | ||
20 | ||
0 | ||
1180591620717411303424 | ||
1180591620717411303451 | ||
27 | ||
47 | ||
1 | ||
1180591620717411303424 | ||
1180591620717679738880 | ||
268435456 | ||
268435476 | ||
13421772 | ||
1180591620717411303424 | ||
1180591620717411301563 | ||
-1861 | ||
-1841 | ||
-94 | ||
1180591620717411303424 | ||
1180591620717142867968 | ||
-268435456 | ||
-268435436 | ||
-13421773 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
33 | ||
32 | ||
SyntaxError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.