Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit df796ed

Browse filesBrowse files
committed
tests
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
1 parent 31c5c3e commit df796ed
Copy full SHA for df796ed

File tree

2 files changed

+4
-0
lines changed
Filter options

2 files changed

+4
-0
lines changed

‎extra_tests/snippets/builtin_bytes.py

Copy file name to clipboardExpand all lines: extra_tests/snippets/builtin_bytes.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,5 +667,7 @@ def __new__(cls, value):
667667
return me
668668
b = B1.fromhex('a0a1a2')
669669
assert b.foo == 'bar'
670+
import sys
671+
assert b'-\xff'.decode(sys.getfilesystemencoding(), 'surrogateescape') == '-\udcff'
670672

671673
skip_if_unsupported(3,11,test__bytes__)

‎extra_tests/snippets/stdlib_math.py

Copy file name to clipboardExpand all lines: extra_tests/snippets/stdlib_math.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,5 @@ def assertAllNotClose(examples, *args, **kwargs):
291291
assert math.fmod(-3.0, NINF) == -3.0
292292
assert math.fmod(0.0, 3.0) == 0.0
293293
assert math.fmod(0.0, NINF) == 0.0
294+
295+
assert math.gamma(1) == 1.0

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.