Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using custom named temporary file. #1222

Merged
merged 1 commit into from
Nov 18, 2015
Merged

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Nov 16, 2015

This is so that tests can run successfully on Windows.

In addition, using generic integer types (from six) for gcloud._helpers._millis_from_datetime since it returns a long on Windows and int on Linux. Also monkey patching the GCE ID check in test_ctor_w_dataset_id_no_environ since some CI environments will give a "false positive" on that test.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 16, 2015
self.assertEqual(fh.tell(), len(DATA))

with _NamedTemporaryFile() as temp:
with open(temp.name, 'wb') as file_obj:

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This is so that tests can run successfully on Windows.

In addition, using generic integer types (from `six`)
for `gcloud._helpers._millis_from_datetime` since it returns
a `long` on Windows and `int` on Linux. Also monkey
patching the GCE ID check in `test_ctor_w_dataset_id_no_environ`
since some CI environments will give a "false positive"
on that test.
@tseaver
Copy link
Contributor

tseaver commented Nov 18, 2015

LGTM

dhermes added a commit that referenced this pull request Nov 18, 2015
Using custom named temporary file.
@dhermes dhermes merged commit 1d1c8a2 into googleapis:master Nov 18, 2015
@dhermes dhermes deleted the drop-namedtemp branch November 18, 2015 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants