Skip to content

Commit a518ffc

Browse files
committed
Updated action tests.
1 parent bc1b396 commit a518ffc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

utils/build_swift/tests/argparse/test_actions.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88

99

10-
import os
11-
1210
from ..utils import TestCase, redirect_stderr
13-
from ...argparse import (ArgumentParser, ArgumentTypeError, BoolType, Nargs,
14-
PathType, SUPPRESS, actions)
11+
from ...argparse import (ArgumentParser, BoolType, Nargs, PathType, SUPPRESS,
12+
actions)
1513

1614

1715
# -----------------------------------------------------------------------------
@@ -257,13 +255,13 @@ def test_default_attributes(self):
257255
def test_exists(self):
258256
action = actions.StorePathAction(['--foo'], dests=['foo'], exists=True)
259257

260-
self.assertTrue(action.type.assert_exists)
258+
self.assertTrue(action.type._assert_exists)
261259

262260
def test_executable(self):
263261
action = actions.StorePathAction(['--foo'], dests=['foo'],
264262
executable=True)
265263

266-
self.assertTrue(action.type.assert_executable)
264+
self.assertTrue(action.type._assert_executable)
267265

268266

269267
class TestToggleTrueAction(TestCase):

0 commit comments

Comments
 (0)