diff --git a/tests/test_offline.py b/tests/test_offline.py index 25229c0..47e43a5 100644 --- a/tests/test_offline.py +++ b/tests/test_offline.py @@ -233,9 +233,12 @@ class TestOffline(unittest.TestCase): def test_objects(self, m): paths = ['cmd.exe', 'tmux', 'MachO-OSX-x64-ls'] - for path in paths: - json_blob = self.make_objects(os.path.join('tests', - 'viper-test-files', 'test_files', path)) + try: + for path in paths: + json_blob = self.make_objects(os.path.join('tests', + 'viper-test-files', 'test_files', path)) + except IOError: # Can be replaced with FileNotFoundError when support for python 2 is dropped + return unittest.SkipTest() print(json_blob) if __name__ == '__main__':