Content-Length: 263370 | pFad | http://github.com/postgrespro/testgres/commit/e7a35562f1b8ca739e3d29a11bc5fb67f6737ed0

50 [BUG FIX] Incomplete asserts are fixed (#261) · postgrespro/testgres@e7a3556 · GitHub
Skip to content

Commit e7a3556

Browse files
[BUG FIX] Incomplete asserts are fixed (#261)
TestStartupData__Helper::CalcCurrentTestWorkerSignature is updated It is a debug level mistake.
1 parent ec0b8e9 commit e7a3556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def CalcRootLogDir() -> str:
6464
# --------------------------------------------------------------------
6565
def CalcCurrentTestWorkerSignature() -> str:
6666
currentPID = os.getpid()
67-
assert type(currentPID)
67+
assert type(currentPID) == int # noqa: E721
6868

6969
startTS = __class__.sm_StartTS
70-
assert type(startTS)
70+
assert type(startTS) == datetime.datetime # noqa: E721
7171

7272
result = "pytest-{0:04d}{1:02d}{2:02d}_{3:02d}{4:02d}{5:02d}".format(
7373
startTS.year,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/testgres/commit/e7a35562f1b8ca739e3d29a11bc5fb67f6737ed0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy