Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16fd323

Browse files
committed
Removing os.environ patching in doctest.
It turns out Sphinx allows this outside of a sandbox.
1 parent 0581c28 commit 16fd323

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

datastore/google/cloud/datastore/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,14 @@
1616
1717
You'll typically use these to get started with the API:
1818
19-
.. testsetup:: constructors
20-
21-
import os
22-
os.environ['GOOGLE_CLOUD_PROJECT'] = u'my-project'
23-
2419
.. doctest:: constructors
2520
2621
>>> from google.cloud import datastore
2722
>>>
2823
>>> client = datastore.Client()
29-
>>> print(client.project)
30-
my-project
3124
>>> key = client.key('EntityKind', 1234)
3225
>>> key
33-
<Key('EntityKind', 1234), project=my-project>
26+
<Key('EntityKind', 1234), project=...>
3427
>>> entity = datastore.Entity(key)
3528
>>> entity['answer'] = 42
3629
>>> entity

0 commit comments

Comments
 (0)