mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Removed the test for threading support in Cache. That feature has been removed in the previous commit.
This commit is contained in:
parent
fc76a843d5
commit
32d9b573c0
@ -137,18 +137,3 @@ class TCCacheSQLEscape(TestCase):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
self.fail()
|
self.fail()
|
||||||
|
|
||||||
|
|
||||||
class TCCacheThreaded(TestCase):
|
|
||||||
def test_access_cache(self):
|
|
||||||
def thread_run():
|
|
||||||
try:
|
|
||||||
c['foo'] = [(1,2,3)]
|
|
||||||
except sqlite.ProgrammingError:
|
|
||||||
self.fail()
|
|
||||||
|
|
||||||
c = Cache()
|
|
||||||
t = threading.Thread(target=thread_run)
|
|
||||||
t.start()
|
|
||||||
t.join()
|
|
||||||
self.assertEqual([(1,2,3)], c['foo'])
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user