Skip to content

Commit cc9828c

Browse files
committed
---
yaml --- r: 214910 b: refs/heads/beta c: a40bca2 h: refs/heads/master v: v3
1 parent 01307f8 commit cc9828c

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 8c86f8ff8c7cbbf0e87f0c7fe22e5596a4778bfc
26+
refs/heads/beta: a40bca29a818b4cbea072a295cb80aa9a4c43d52
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 8c0aa6d64ebab528f7eb182812007155d6044972
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/etc/check-sanitycheck.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@
1717

1818
STATUS = 0
1919

20-
2120
def error_unless_permitted(env_var, message):
2221
global STATUS
2322
if not os.getenv(env_var):
2423
sys.stderr.write(message)
2524
STATUS = 1
2625

27-
2826
def only_on(platforms):
2927
def decorator(func):
3028
@functools.wraps(func)
@@ -34,8 +32,7 @@ def inner():
3432
return inner
3533
return decorator
3634

37-
38-
@only_on(('linux', 'darwin', 'freebsd', 'openbsd'))
35+
@only_on(['linux', 'darwin', 'freebsd', 'openbsd'])
3936
def check_rlimit_core():
4037
import resource
4138
soft, hard = resource.getrlimit(resource.RLIMIT_CORE)
@@ -46,9 +43,9 @@ def check_rlimit_core():
4643
set ALLOW_NONZERO_RLIMIT_CORE to ignore this warning
4744
""" % (soft))
4845

49-
@only_on(('windows'))
46+
@only_on(['win32'])
5047
def check_console_code_page():
51-
if "65001" not in subprocess.check_output(['cmd', '/c', 'chcp']):
48+
if '65001' not in subprocess.check_output(['cmd', '/c', 'chcp']):
5249
sys.stderr.write('Warning: the console output code page is not UTF-8, \
5350
some tests may fail. Use `cmd /c "chcp 65001"` to setup UTF-8 code page.\n')
5451

0 commit comments

Comments
 (0)