Skip to content

Commit b96922e

Browse files
harshavardhanaminio-trusted
authored andcommitted
enable MINT_MODE=full for travis tests
1 parent f379571 commit b96922e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ script:
2020
- pyflakes minio/*.py || true
2121
- python setup.py install
2222
- python setup.py nosetests
23-
- python tests/functional/tests.py
23+
- MINT_MODE=full python tests/functional/tests.py

tests/functional/tests.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
# Minio Python Library for Amazon S3 Compatible Cloud Storage,
4-
# (C) 2015, 2016, 2017 Minio, Inc.
4+
# (C) 2015, 2016, 2017, 2018 Minio, Inc.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18+
from __future__ import division
19+
1820
import os
1921
from sys import exit
2022
import uuid
@@ -839,8 +841,8 @@ def test_get_partial_object(client, log_output):
839841
try:
840842
newfile = 'newfile'
841843
MB_1 = 1024*1024 # 1MiB.
842-
log_output.args['offset'] = offset = MB_1/2
843-
log_output.args['length'] = length = (MB_1/2)-1000
844+
log_output.args['offset'] = offset = int(MB_1/2)
845+
log_output.args['length'] = length = int(MB_1/2)-1000
844846
MB_1_reader = LimitedRandomReader(MB_1)
845847
client.make_bucket(bucket_name)
846848
client.put_object(bucket_name, object_name, MB_1_reader, MB_1)

0 commit comments

Comments
 (0)