summaryrefslogtreecommitdiff
path: root/test/test_issues/test_issue209.py
blob: 3d441d6ce2cabf5f2b926c86f7c185775f082666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import threading
import unittest

import rdflib


def makeNode():
    i = 0
    while i < 9999:
        i += 1
        rdflib.term.BNode()


class TestRandomSeedInThread(unittest.TestCase):
    def test_bnode_id_gen_in_thread(self):
        """ """
        th = threading.Thread(target=makeNode)
        th.daemon = True
        th.start()
        makeNode()


if __name__ == "__main__":
    unittest.main()