Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Aug 21, 2024
1 parent 542c7fa commit 5d98398
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions ostap/io/tests/test_io_dbases.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,22 @@
if '__main__' == __name__ : logger = getLogger ( 'test_io_dbases' )
else : logger = getLogger ( __name__ )
# =============================================================================
characters = "abcdefghijklmnopqrstuvwxyz0123456789_"
# =============================================================================
## generate random name
def the_name ():
""" Generate random name"""
return ''.join ( random.choices ( characters , k = 8 ) )
# =============================================================================

if (3,0) <= sys.version_info :
characters = "abcdefghijklmnopqrstuvwxyz0123456789_"
# =============================================================================
## generate random name
def the_name ():
""" Generate random name"""
return ''.join ( random.choices ( characters , k = 8 ) )
# =============================================================================
else :
# =============================================================================
index = 1
def _the_name () :
index += 1
return 'i%08d' % index
# =============================================================================

dbases = []

# ============================================================================
Expand Down

0 comments on commit 5d98398

Please sign in to comment.