Commits (2)
......@@ -15,7 +15,8 @@ cygwin_dirs = []
def add_cygdir(*args):
cygwin_dirs += list(args)
for a in args:
cygwin_dirs.append(a)
def get_cygwin_dir():
......
import unittest
class TestCRT(unittest.TestCase):
def test_cygdir(self):
import lifelib
lifelib.add_cygdir('something')
from lifelib import autocompile
self.assertEqual(autocompile.cygwin_dirs, ['something'])
if __name__ == '__main__':
unittest.main()