Skip to content

Commit

Permalink
Pass empty args to test config parser.
Browse files Browse the repository at this point in the history
This fixes bug 1056420, which allows users to pass nosetests options
through run_tests.sh again.

Change-Id: I03e84488a24e2552b61aa0cab842d8325e8e856f
  • Loading branch information
Mark Washenberger committed Sep 25, 2012
1 parent 4279c65 commit ef64159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glance/tests/unit/test_clients.py
Expand Up @@ -34,7 +34,7 @@
UUID2 = _gen_uuid()

#NOTE(bcwaldon): needed to init config_dir cli opt
config.parse_args()
config.parse_args(args=[])


class TestRegistryClient(base.IsolatedUnitTest):
Expand Down
2 changes: 1 addition & 1 deletion glance/tests/utils.py
Expand Up @@ -57,7 +57,7 @@ def setUp(self):
#NOTE(bcwaldon): parse_args has to be called to register certain
# command-line options - specifically we need config_dir for
# the following policy tests
config.parse_args()
config.parse_args(args=[])

def tearDown(self):
super(BaseTestCase, self).tearDown()
Expand Down

0 comments on commit ef64159

Please sign in to comment.