Skip to content

Commit

Permalink
refs #50 : OSI for Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Dec 7, 2016
1 parent 788f3a9 commit f60fba0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cache_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class TestCache(unittest.TestCase):
logger = None

def setUp(self):
self.logger = punx.logs.Logger()
punx.logs.ignore_logging()

def tearDown(self):
if os.path.exists(self.logger.log_file):
if self.logger is not None and os.path.exists(self.logger.log_file):
os.remove(self.logger.log_file)
self.logger = None

Expand All @@ -37,7 +37,7 @@ def test_get_nxdl_dir(self):
base += '/'
self.assertTrue(base.startswith(base))
received = punx.cache.get_nxdl_dir()[len(base):]
expected = 'src/punx/cache/definitions-master'
expected = os.path.join(*'src/punx/cache/definitions-master'.split('/'))
self.assertEqual(expected, received)
self.assertTrue(punx.cache.USE_SOURCE_CACHE)

Expand All @@ -50,7 +50,7 @@ def test_get_nxdl_xsd(self):
def test_get_pickle_file_name(self):
path = punx.cache.SOURCE_CACHE_ROOT
pf = punx.cache.get_pickle_file_name(path)
self.assertEqual('/nxdl.p', pf[len(path):])
self.assertEqual(os.path.sep +'nxdl.p', pf[len(path):])

def test___get_github_info__(self):
info = punx.cache.__get_github_info__()
Expand Down

0 comments on commit f60fba0

Please sign in to comment.