File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
23
23
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
24
24
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
- refs/heads/beta: 8c86f8ff8c7cbbf0e87f0c7fe22e5596a4778bfc
26
+ refs/heads/beta: a40bca29a818b4cbea072a295cb80aa9a4c43d52
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
28
refs/heads/tmp: 8c0aa6d64ebab528f7eb182812007155d6044972
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
Original file line number Diff line number Diff line change 17
17
18
18
STATUS = 0
19
19
20
-
21
20
def error_unless_permitted (env_var , message ):
22
21
global STATUS
23
22
if not os .getenv (env_var ):
24
23
sys .stderr .write (message )
25
24
STATUS = 1
26
25
27
-
28
26
def only_on (platforms ):
29
27
def decorator (func ):
30
28
@functools .wraps (func )
@@ -34,8 +32,7 @@ def inner():
34
32
return inner
35
33
return decorator
36
34
37
-
38
- @only_on (('linux' , 'darwin' , 'freebsd' , 'openbsd' ))
35
+ @only_on (['linux' , 'darwin' , 'freebsd' , 'openbsd' ])
39
36
def check_rlimit_core ():
40
37
import resource
41
38
soft , hard = resource .getrlimit (resource .RLIMIT_CORE )
@@ -46,9 +43,9 @@ def check_rlimit_core():
46
43
set ALLOW_NONZERO_RLIMIT_CORE to ignore this warning
47
44
""" % (soft ))
48
45
49
- @only_on (( 'windows' ) )
46
+ @only_on ([ 'win32' ] )
50
47
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' ]):
52
49
sys .stderr .write ('Warning: the console output code page is not UTF-8, \
53
50
some tests may fail. Use `cmd /c "chcp 65001"` to setup UTF-8 code page.\n ' )
54
51
You can’t perform that action at this time.
0 commit comments