]> granicus.if.org Git - recode/commitdiff
t50_methods.py test: skip filter tests on Windows
authorReuben Thomas <rrt@sc3d.org>
Tue, 30 Jan 2018 01:51:22 +0000 (01:51 +0000)
committerReuben Thomas <rrt@sc3d.org>
Tue, 30 Jan 2018 02:10:26 +0000 (02:10 +0000)
Windows doesn’t have fork anyway, but also can’t cope with redirection in
the shell.

tests/t50_methods.py

index 6345c73ace1ee07b09dea88079f9695a1c0df7c8..66da2e6182cbfc70d0eb7982cf879235af78ec7d 100644 (file)
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 import common
 from common import setup_module, teardown_module
+from __main__ import py
 
 import os, sys
 input_name = '%s/../COPYING' % os.path.dirname(sys.argv[0])
@@ -59,6 +60,8 @@ def test_1():
 def validate(request, sequence, mode):
     before, after = request.split('..')
     if mode == 'filter':
+        if os.name == 'nt':
+            py.test.skip()
         command = ('$R --quiet --force --sequence=%s < %s %s'
                    '| $R --quiet --force --sequence=%s %s..%s'
                    % (sequence, input_name, request, sequence, after, before))