Skip to content

Commit

Permalink
torch obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenkov committed Apr 22, 2022
1 parent 70daed4 commit c2588d9
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/test_onimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,3 @@ def test_cpickle_fallback_to_pickle(self):
# verify,
self.assertIn('pickle', sys.modules.keys())
self.assertIs(sqlitedict.dumps, sys.modules['pickle'].dumps)


class SqliteDictPython24Test(unittest.TestCase):
"""Verify ImportError when using python2.4 or earlier."""
def setUp(self):
# manually monkeypatch sys.version_info
self._orig_version_info = sys.version_info
sys.version_info = (2, 4, 0, 'does-not-matter', 0)
self.orig_sqlitedict = sys.modules.pop('sqlitedict', None)

def tearDown(self):
# remove our monkeypatch
sys.version_info = self._orig_version_info
if self.orig_sqlitedict:
sys.modules['sqlitedict'] = self.orig_sqlitedict

def test_py24_error(self):
with self.assertRaises(ImportError):
__import__("sqlitedict")

0 comments on commit c2588d9

Please sign in to comment.