Skip to content

Commit 512abbb

Browse files
committed
make_dir
1 parent b5845e6 commit 512abbb

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

gmock.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ def generate_includes(includes):
251251

252252
config = {}
253253
execfile(options.config, config)
254-
not os.path.exists(options.path) and os.makedirs(options.path)
255-
256254
return mock_generator(
257255
cursor = parse(files = args).cursor,
258256
decl = options.decl,

test/gmock_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_gmock_args_fail_file_not_found(self):
3838

3939
def test_gmock_one_file_no_output(self):
4040
self.assertEqual(0, gmock.main(['./gmock.py', '-c' '../gmock.conf', '-d', self.generated_dir, '-l', 'n1', 'given/I1.hpp']))
41-
self.assertEqual(0, len([name for name in os.listdir(self.generated_dir)]))
41+
self.assertFalse(os.path.exists(self.generated_dir))
4242

4343
def test_gmock_one_file_with_output(self):
4444
self.assertEqual(0, gmock.main(['./gmock.py', '-c', '../gmock.conf', '-d', self.generated_dir, '-l', 'n1', 'given/I2.hpp']))

0 commit comments

Comments
 (0)