<p></p>
<p>with <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/b722a48144ac9e029bdbc2968dedbe56966a3f7c/hovercard" href="https://github.com/kamailio/kamailio/commit/b722a48144ac9e029bdbc2968dedbe56966a3f7c"><tt>b722a48</tt></a> :</p>
<pre><code>python2 dbtextdb_test.py
...
----------------------------------------------------------------------
Ran 3 tests in 0.006s

OK
</code></pre>
<p>But for python3:</p>
<pre><code>python3 dbtextdb_test.py
/home/vseva/data/projects/kamailio/utils/kamctl/dbtextdb/dbtextdb.py:1074: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/subscriber' mode='r' encoding='UTF-8'>
  self.fd = open(os.path.join(self.location, self.table), 'r')
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/home/vseva/data/projects/kamailio/utils/kamctl/dbtextdb/dbtextdb.py:1074: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/test' mode='r' encoding='UTF-8'>
  self.fd = open(os.path.join(self.location, self.table), 'r')
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/home/vseva/data/projects/kamailio/utils/kamctl/dbtextdb/dbtextdb.py:1074: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/unsorted_table' mode='r' encoding='UTF-8'>
  self.fd = open(os.path.join(self.location, self.table), 'r')
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.7/unittest/case.py:615: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/test' mode='r' encoding='UTF-8'>
  testMethod()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
.dbtextdb_test.py:353: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/test' mode='r' encoding='UTF-8'>
  db_conn = DBText('./tests')
ResourceWarning: Enable tracemalloc to get the object allocation traceback
dbtextdb_test.py:363: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/test' mode='r' encoding='UTF-8'>
  db_conn = DBText('./tests')
ResourceWarning: Enable tracemalloc to get the object allocation traceback
dbtextdb_test.py:375: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/bad_table_wrong_type' mode='r' encoding='UTF-8'>
  db_conn = DBText('./tests')
ResourceWarning: Enable tracemalloc to get the object allocation traceback
dbtextdb_test.py:381: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/bad_table_short_row' mode='r' encoding='UTF-8'>
  db_conn = DBText('./tests')
ResourceWarning: Enable tracemalloc to get the object allocation traceback
dbtextdb_test.py:387: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/bad_table_long_row' mode='r' encoding='UTF-8'>
  db_conn = DBText('./tests')
ResourceWarning: Enable tracemalloc to get the object allocation traceback
dbtextdb_test.py:393: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/bad_table_null' mode='r' encoding='UTF-8'>
  db_conn = DBText('./tests')
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.7/unittest/case.py:615: ResourceWarning: unclosed file <_io.TextIOWrapper name='./tests/bad_table_int' mode='r' encoding='UTF-8'>
  testMethod()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
.dbtextdb_test.py:28: DeprecationWarning: Please use assertTrue instead.
  self.assert_(db_conn.command == 'SELECT')
..
----------------------------------------------------------------------
Ran 3 tests in 0.008s

OK
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1747#issuecomment-623445144">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZO5JG4CLAYZQ5KJRKDRP23B5ANCNFSM4GHT5LFQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZIQKNHF7WV3TGVQRQ3RP23B5A5CNFSM4GHT5LF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEUUQJGA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1747#issuecomment-623445144",
"url": "https://github.com/kamailio/kamailio/issues/1747#issuecomment-623445144",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>