Пример #1
0
def test_tarfile_open_repeated_different_path():
    path1 = resource_filename(__name__, 'fixtures/example.tar')
    path2 = resource_filename(__name__, 'fixtures/example2.tar')
    tf1 = tarfile_open(path1)
    tf2 = tarfile_open(path2)
    assert tf1 is not tf2
Пример #2
0
def test_tarfile_open_repeated_different_path():
    path1 = resource_filename(__name__, 'fixtures/example.tar')
    path2 = resource_filename(__name__, 'fixtures/example2.tar')
    tf1 = tarfile_open(path1)
    tf2 = tarfile_open(path2)
    assert tf1 is not tf2
Пример #3
0
def test_tarfile_open_repeated_same_path():
    path = resource_filename(__name__, 'fixtures/example.tar')
    tf1 = tarfile_open(path)
    tf2 = tarfile_open(path)
    assert tf1 is tf2
Пример #4
0
def test_tarfile_open_repeated_same_path():
    path = resource_filename(__name__, 'fixtures/example.tar')
    tf1 = tarfile_open(path)
    tf2 = tarfile_open(path)
    assert tf1 is tf2