Skip to content

Commit 7ae3be1

Browse files
author
chenyunliang520
committed
Update README.rst PYTHONPATH to include gaussdb and gaussdb_pool submodules and fix byte literal formatting in tests/fix_faker.py
1 parent 0314ccf commit 7ae3be1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Now hack away! You can run the tests using on GaussDB::
134134

135135
# Set the Python import path to include your local GaussDB Python project
136136
# Replace your_path with actual values
137-
export PYTHONPATH=/your_path/gaussdb-python
137+
export PYTHONPATH="/your_path/gaussdb-python/gaussdb:/your_path/gaussdb-python/gaussdb_pool"
138138

139139
# Select the pure-Python implementation of the GaussDB adapter
140140
export PSYCOPG_IMPL=python
@@ -183,7 +183,7 @@ Recommended Steps to Run OpenGauss with Python GaussDB Driver Testing (Assuming
183183

184184
# Set the Python import path to include your local GaussDB Python project
185185
# Replace your_path with actual values
186-
export PYTHONPATH=/your_path/gaussdb-python
186+
export PYTHONPATH="/your_path/gaussdb-python/gaussdb:/your_path/gaussdb-python/gaussdb_pool"
187187

188188
# Select the pure-Python implementation of the GaussDB adapter
189189
export PSYCOPG_IMPL=python
@@ -207,7 +207,7 @@ Steps to Run OpenGauss(SSL) with Python GaussDB Driver Testing (Assuming Docker
207207
208208
# Set the Python import path to include your local GaussDB Python project
209209
# Replace your_path with actual values
210-
export PYTHONPATH=/your_path/gaussdb-python
210+
export PYTHONPATH="/your_path/gaussdb-python/gaussdb:/your_path/gaussdb-python/gaussdb_pool"
211211

212212
# Select the pure-Python implementation of the GaussDB adapter
213213
export PSYCOPG_IMPL=python

tests/fix_faker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ def match_any(self, spec, got, want):
316316
if spec == dt.timedelta:
317317
assert abs((got - want).total_seconds()) < 86400 * 2
318318
elif spec in (bytes, bytearray, memoryview):
319-
if want in (b'', bytearray(b'')) or want is None:
320-
assert got in (None, b'', bytearray(b''), memoryview(b''))
319+
if want in (b"", bytearray(b"")) or want is None:
320+
assert got in (None, b"", bytearray(b""), memoryview(b""))
321321
else:
322322
assert got == want
323323
else:

0 commit comments

Comments
 (0)