Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 78cdc34

Browse files
committed
Fix travis and change tactic of determining default_username
1 parent c180e23 commit 78cdc34

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

run_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ $PIP install coverage flake8 psutil Sphinx sphinxcontrib-napoleon
2727
# install testgres' dependencies
2828
export PYTHONPATH=$(pwd)
2929
$PIP install .
30-
3130
# test code quality
32-
flake8 .
31+
flake8 --ignore=F401,E501,F403 .
3332

3433

3534
# remove existing coverage file
@@ -68,3 +67,4 @@ set +eux
6867

6968
# send coverage stats to Codecov
7069
bash <(curl -s https://codecov.io/bash)
70+
bash

testgres/defaults.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import datetime
22
import os
3+
import pwd
34
import struct
45
import uuid
56

@@ -17,7 +18,7 @@ def default_username():
1718
Return default username (current user).
1819
"""
1920

20-
return os.getlogin()
21+
return pwd.getpwuid(os.getuid())[0]
2122

2223

2324
def generate_app_name():

0 commit comments

Comments
 (0)